Skip to content

Commit

Permalink
FIX: Logviewer FormHandler defaults to LOGVIEWER_DB
Browse files Browse the repository at this point in the history
Currently, logviewer's formhandler uses a hard-coded URL.
We allow changing the logviewer DB url via the LOGVIEWER_DB variable.
This commit tells the formandler to use the same URL.
  • Loading branch information
sanand0 committed Nov 15, 2023
1 parent 57bab61 commit ec6f6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gramex/apps/logviewer/gramex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ url:
pattern: /$YAMLURL/query/(?P<table>\w+)/(?P<query>[\w-]+)/
handler: FormHandler
kwargs:
url: sqlite:///$GRAMEXDATA/logs/logviewer.db
import.merge.url: $LOGVIEWER_DB
execution_options:
sqlite_raw_colnames: True
queryfunction: logviewer.query(handler, args)
Expand Down

0 comments on commit ec6f6c2

Please sign in to comment.