Skip to content

Commit a32d650

Browse files
committed
new config var. for default engine
1 parent 09ebd0e commit a32d650

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ ARAA_NAME=Araa
2626
# Something like !ddg cats will redirect the user to DuckDuckGo with their results for cats.
2727
SHEBANG=!
2828

29+
# The preferred engine to use if the client doesn't prefer anything.
30+
# Can be: google qwant
31+
DEFAULT_ENGINE=google
32+
2933
# The name of the CSS theme to default to.
3034
# The value will be used to load a CSS file named after the value.
3135
# So dark_blur will load /static/css/dark_blur.css.

scripts/generate-pyconfig.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@
116116
'pyname': 'ARAA_NAME',
117117
'type': str,
118118
},
119+
'DEFAULT_ENGINE' : {
120+
'default_val': 'google',
121+
'pyname': 'DEFAULT_ENGINE',
122+
'type': str,
123+
},
119124
}
120125

121126
import os

0 commit comments

Comments
 (0)