We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f6552 commit 89057c3Copy full SHA for 89057c3
azure-vote/azure-vote/main.py
@@ -10,17 +10,17 @@
10
# Load configurations from environment or config file
11
app.config.from_pyfile('config_file.cfg')
12
13
-if "VOTE1VALUE" in os.environ:
+if ("VOTE1VALUE" in os.environ and os.environ['VOTE1VALUE']):
14
button1 = os.environ['VOTE1VALUE']
15
else:
16
button1 = app.config['VOTE1VALUE']
17
18
-if "VOTE2VALUE" in os.environ:
+if ("VOTE2VALUE" in os.environ and os.environ['VOTE2VALUE']):
19
button2 = os.environ['VOTE2VALUE']
20
21
button2 = app.config['VOTE2VALUE']
22
23
-if "TITLE" in os.environ:
+if ("TITLE" in os.environ and os.environ['TITLE']):
24
title = os.environ['TITLE']
25
26
title = app.config['TITLE']
0 commit comments