WIP restructuring

This commit is contained in:
muskit
2023-05-16 18:57:07 -07:00
parent abd086eb86
commit 114de79efa
3 changed files with 12 additions and 45 deletions
+2 -5
View File
@@ -18,7 +18,7 @@ import talenttweet as tt
import ttweetqueue as ttq
PROGRAM_ARGS = None
safe_to_post_tweets = True
safe_to_post_tweets = False
errored = False
## Returns the ID of all tweets (up to limit) from a user ID.
@@ -133,13 +133,10 @@ async def process_queue() -> bool:
# return True = no problems
# return False = issue occurred where we couldn't post all past tweets properly
async def run(program_args):
global PROGRAM_ARGS
async def run():
global errored
global safe_to_post_tweets
PROGRAM_ARGS = program_args
ret = None
queue = ttq.TalentTweetQueue.instance
while True:
await get_cross_talent_tweets()