add some verbose
This commit is contained in:
parent
8c57391b54
commit
eda6804d38
1 changed files with 6 additions and 0 deletions
6
main.py
6
main.py
|
@ -351,11 +351,17 @@ def start():
|
||||||
need_changes = True
|
need_changes = True
|
||||||
|
|
||||||
if need_changes:
|
if need_changes:
|
||||||
|
if keys["VERBOSE"]:
|
||||||
|
print("Changes needed... ", end=" ")
|
||||||
# Clean old rules
|
# Clean old rules
|
||||||
if old_rules:
|
if old_rules:
|
||||||
|
if keys["VERBOSE"]:
|
||||||
|
print("deleting old rules... ", end=" ")
|
||||||
stream.delete_rules([rule.id for rule in old_rules])
|
stream.delete_rules([rule.id for rule in old_rules])
|
||||||
|
|
||||||
# Add new rules
|
# Add new rules
|
||||||
|
if keys["VERBOSE"]:
|
||||||
|
print("sending new filter to Twitter.")
|
||||||
stream.add_rules([StreamRule(rule) for rule in rules])
|
stream.add_rules([StreamRule(rule) for rule in rules])
|
||||||
|
|
||||||
# Apply the filter
|
# Apply the filter
|
||||||
|
|
Reference in a new issue