Commit ddc4adca authored by Leo Fahrbach's avatar Leo Fahrbach
Browse files

fix multiple sending of announce each hour

parent 382c3162
Pipeline #1140 passed with stage
in 1 minute and 24 seconds
...@@ -145,7 +145,7 @@ def main(): ...@@ -145,7 +145,7 @@ def main():
results = site.get('cargoquery', results = site.get('cargoquery',
tables='News', tables='News',
fields='_pageName=Page,Titel,Autor,Zusammenfassung,Datum', fields='_pageName=Page,Titel,Autor,Zusammenfassung,Datum',
where='Infoseite=1 AND Kategorie="StuStaNet" AND TIMESTAMPDIFF(HOUR,Datum,NOW())<1', where='Infoseite=1 AND Kategorie="StuStaNet" AND TIMESTAMPDIFF(HOUR,NOW(),Datum)=0',
order_by='Datum ASC', order_by='Datum ASC',
format='json', format='json',
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment