zz
This commit is contained in:
parent
399f263921
commit
123191b0f4
@ -23,6 +23,18 @@ MINFILESIZE=300
|
|||||||
MAXFILESIZE=10000000
|
MAXFILESIZE=10000000
|
||||||
MINTEXTSIZE=200
|
MINTEXTSIZE=200
|
||||||
|
|
||||||
|
def put_queue(db,channel,message):
|
||||||
|
queuecol = db["queue"]
|
||||||
|
queuecol.insert_one({"channel":channel,"message":message,"created_at":datetime.utcnow(),"started_at":None})
|
||||||
|
|
||||||
|
def reserve_queue(db,channel,message):
|
||||||
|
queuecol = db["queue"]
|
||||||
|
r = queuecol.find_one_and_delete({"channel":channel},sort={"created_at":-1})
|
||||||
|
|
||||||
|
def delete_queue(db,channel):
|
||||||
|
queuecol = db["queue"]
|
||||||
|
pass
|
||||||
|
|
||||||
def calculate_checksums(text):
|
def calculate_checksums(text):
|
||||||
"""
|
"""
|
||||||
@return fingerprints of a paragraphs in text. Paragraphs are separated by a blank line
|
@return fingerprints of a paragraphs in text. Paragraphs are separated by a blank line
|
||||||
|
Loading…
Reference in New Issue
Block a user