sigh
parent
e312887f45
commit
d565696117
|
@ -73,7 +73,7 @@ def get_data():
|
||||||
data = {'generated_at': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
|
data = {'generated_at': datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
|
||||||
'site_name': 'tilde.town',
|
'site_name': 'tilde.town',
|
||||||
'site_url': 'http://tilde.town',
|
'site_url': 'http://tilde.town',
|
||||||
'uptime': str(uptime('-p')),}
|
'uptime': str(uptime('-p')).rstrip(),}
|
||||||
|
|
||||||
data.update(user_data)
|
data.update(user_data)
|
||||||
return data
|
return data
|
||||||
|
|
|
@ -6,7 +6,8 @@ def slurp(file_path):
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
return contents
|
pass
|
||||||
|
return contents
|
||||||
|
|
||||||
def thread(initial, *fns):
|
def thread(initial, *fns):
|
||||||
value = initial
|
value = initial
|
||||||
|
|
Reference in New Issue