9 notify_cmd
= aurweb
.config
.get('notifications', 'notify-cmd')
13 conn
= aurweb
.db
.Connection()
15 now
= int(time
.time())
16 filter_from
= now
+ 500
17 filter_to
= now
+ 172800
19 cur
= conn
.execute("SELECT ID FROM TU_VoteInfo " +
20 "WHERE End >= ? AND End <= ?",
21 [filter_from
, filter_to
])
23 for vote_id
in [row
[0] for row
in cur
.fetchall()]:
24 subprocess
.Popen((notify_cmd
, 'tu-vote-reminder', str(vote_id
))).wait()
27 if __name__
== '__main__':