mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-08-05 05:04:19 -04:00
Update utils.py
This commit is contained in:
parent
c00fef27a9
commit
ba8285552f
1 changed files with 6 additions and 0 deletions
6
utils.py
6
utils.py
|
@ -11,6 +11,12 @@ def update_user_state(user_id, state):
|
|||
def get_user_state(user_id):
|
||||
return user_states.get(user_id, None)
|
||||
|
||||
def datum(date):
|
||||
yymmdd = date.split(' ')
|
||||
jaar,maand,dag = yymmdd[0].split('-')
|
||||
mydate = yymmdd[1] + " " + dag + "/" + maand + "/" + jaar[2:]
|
||||
return mydate
|
||||
|
||||
|
||||
def send_message(message, destination, interface):
|
||||
max_payload_size = 200
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue