Skip to content

Commit

Permalink
Some hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanAkkerman committed Aug 8, 2024
1 parent 1926ad9 commit a7b2447
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ LOGGING_LEVEL: INFO
# Debug mode is enabled when using the flag `--debug`

# Choose the debug mode: "include_only" to enable only DEBUG_COGS, "exclude" to enable everything except DEBUG_COGS
DEBUG_MODE_TYPE: "include_only"
DEBUG_MODE_TYPE: "exclude"

# Add file names of the cogs that should be enabled
DEBUG_COGS:
- index
2 changes: 2 additions & 0 deletions data/bitcoin_data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5711,3 +5711,5 @@ Date,Value
2024-08-04,58161.0
2024-08-05,54018.81
2024-08-06,56022.01
2024-08-06,56022.01
2024-08-07,55134.16
1 change: 1 addition & 0 deletions src/cogs/loops/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async def cms_scraper(self):
self.cmc_channel = await get_channel(
self.bot, config["LOOPS"]["REDDIT"]["CRYPTOMOONSHOTS"]["CHANNEL"]
)
print(self.cmc_channel)
posts = await reddit_scraper(
subreddit_name="CryptoMoonShots", reddit_client=self.reddit
)
Expand Down
2 changes: 1 addition & 1 deletion src/cogs/loops/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ async def post_tweet(
logger.error("Connection Error posting tweet on timeline")

except Exception as error:
logger.error("Error posting tweet on timeline", error)
logger.error(f"Error posting tweet on timeline, error: {error}")
logger.error(traceback.format_exc())

async def make_and_send_webhook(
Expand Down
1 change: 1 addition & 0 deletions src/util/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ async def format_embed(og_df: pd.DataFrame, type: str, source: str) -> discord.E
# Format the data
df.rename(
columns={
"symbol": "Symbol",
"regularMarketPrice": "Price",
"regularMarketChange": "% Change",
"regularMarketVolume": "Volume",
Expand Down
2 changes: 1 addition & 1 deletion src/util/tweet_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async def add_financials(
util.vars.classified_tickers = remove_old_rows(util.vars.classified_tickers, 3)
classified_tickers = util.vars.classified_tickers["ticker"].tolist()

for ticker in symbols:
for ticker in symbols[24:]:
if crypto > stocks and crypto > forex:
majority = "crypto"
elif stocks > crypto and stocks > forex:
Expand Down

0 comments on commit a7b2447

Please sign in to comment.