mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
fix type assumption
This commit is contained in:
@@ -37,7 +37,7 @@ def get_random_question(quizcfg):
|
||||
|
||||
|
||||
def get_current_question(quizcfg):
|
||||
if quizcfg.get('active_id'):
|
||||
if quizcfg.get('active_id') and quizcfg.get('active_id') != 'None':
|
||||
return int(quizcfg['active_id'])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user