forked from tanner/qotnews
Misc fixes
This commit is contained in:
@@ -16,8 +16,9 @@ def alert_tanner(message):
|
||||
except BaseException as e:
|
||||
logging.error('Problem alerting Tanner: ' + str(e))
|
||||
|
||||
NUM_ID_CHARS = 4
|
||||
def gen_rand_id():
|
||||
return ''.join(random.choice(string.ascii_uppercase) for _ in range(4))
|
||||
return ''.join(random.choice(string.ascii_uppercase) for _ in range(NUM_ID_CHARS))
|
||||
|
||||
def render_md(md):
|
||||
if md:
|
||||
|
||||
Reference in New Issue
Block a user