Skip to content

Commit

Permalink
update cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Jul 27, 2024
1 parent 5cf219f commit 0f733ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/cron_reddit_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
user_agent=user_agent
)

# Get subscriber count and active user count
#subreddit = reddit.subreddit("wallstreetbets")
#subscriber_count = subreddit.subscribers
#active_user_count = subreddit.active_user_count


# Function to save data
def save_data(data, filename):
with open(f'json/reddit-tracker/wallstreetbets/{filename}', 'w', encoding='utf-8') as f:
Expand Down
2 changes: 1 addition & 1 deletion app/primary_cron_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def run_threaded(job_func):
schedule.every(10).minutes.do(run_threaded, run_one_day_price).tag('one_day_price_job')
schedule.every(15).minutes.do(run_threaded, run_cron_heatmap).tag('heatmap_job')

schedule.every(30).minutes.do(run_threaded, run_reddit_tracker).tag('reddit_tracker_job')
schedule.every(10).minutes.do(run_threaded, run_reddit_tracker).tag('reddit_tracker_job')


schedule.every(1).minutes.do(run_threaded, run_cron_quote).tag('quote_job')
Expand Down

0 comments on commit 0f733ba

Please sign in to comment.