mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-27 17:28:52 +01:00
* Add TODO * Disable usage data stat tracking for self-hosted servers for #246
This commit is contained in:
parent
11fc92ee5f
commit
fa4dc938fe
@ -225,7 +225,7 @@ func main() {
|
|||||||
server.IsProductionEnvironment(isProductionEnvironment()),
|
server.IsProductionEnvironment(isProductionEnvironment()),
|
||||||
server.WithCron(cron),
|
server.WithCron(cron),
|
||||||
server.WithUpdateInfo(release.BuildUpdateInfo(release.Version)),
|
server.WithUpdateInfo(release.BuildUpdateInfo(release.Version)),
|
||||||
server.TrackUsageData(true),
|
server.TrackUsageData(isProductionEnvironment() || isTestEnvironment() || os.Getenv("HISHTORY_ENABLE_USAGE_STATS") != ""),
|
||||||
)
|
)
|
||||||
|
|
||||||
go runBackgroundJobs(context.Background(), srv, db, stats)
|
go runBackgroundJobs(context.Background(), srv, db, stats)
|
||||||
|
@ -927,3 +927,4 @@ func TuiQuery(ctx context.Context, shellName, initialQuery string) error {
|
|||||||
|
|
||||||
// TODO: support custom key bindings
|
// TODO: support custom key bindings
|
||||||
// TODO: make the help page wrap
|
// TODO: make the help page wrap
|
||||||
|
// TODO: If the initial query contains dashes, maybe we should smartly escape them?
|
||||||
|
Loading…
Reference in New Issue
Block a user