mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
scope fixes; put request_counter to conf()
This commit is contained in:
@@ -16,6 +16,8 @@ config['hist_max_count'] = 5
|
||||
config['hist_max_time'] = 10 * 60
|
||||
|
||||
config['uptime'] = -time.time()
|
||||
config['request_counter'] = 0
|
||||
|
||||
|
||||
# the "dice" feature will use more efficient random data (0) for given users
|
||||
config['enhanced-random-user'] = ( 'FIXME', 'FIXME' )
|
||||
@@ -24,3 +26,7 @@ def conf(val):
|
||||
if val in config.keys():
|
||||
return config[val]
|
||||
return None
|
||||
|
||||
def set_conf(key, val):
|
||||
config[key] = val
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user