Skip to content

Commit a7b2447

Browse files
Some hotfixes
1 parent 1926ad9 commit a7b2447

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

config.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ LOGGING_LEVEL: INFO
292292
# Debug mode is enabled when using the flag `--debug`
293293

294294
# Choose the debug mode: "include_only" to enable only DEBUG_COGS, "exclude" to enable everything except DEBUG_COGS
295-
DEBUG_MODE_TYPE: "include_only"
295+
DEBUG_MODE_TYPE: "exclude"
296296

297297
# Add file names of the cogs that should be enabled
298298
DEBUG_COGS:
299-
- index

data/bitcoin_data.csv

+2
Original file line numberDiff line numberDiff line change
@@ -5711,3 +5711,5 @@ Date,Value
57115711
2024-08-04,58161.0
57125712
2024-08-05,54018.81
57135713
2024-08-06,56022.01
5714+
2024-08-06,56022.01
5715+
2024-08-07,55134.16

src/cogs/loops/reddit.py

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ async def cms_scraper(self):
6565
self.cmc_channel = await get_channel(
6666
self.bot, config["LOOPS"]["REDDIT"]["CRYPTOMOONSHOTS"]["CHANNEL"]
6767
)
68+
print(self.cmc_channel)
6869
posts = await reddit_scraper(
6970
subreddit_name="CryptoMoonShots", reddit_client=self.reddit
7071
)

src/cogs/loops/timeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ async def post_tweet(
360360
logger.error("Connection Error posting tweet on timeline")
361361

362362
except Exception as error:
363-
logger.error("Error posting tweet on timeline", error)
363+
logger.error(f"Error posting tweet on timeline, error: {error}")
364364
logger.error(traceback.format_exc())
365365

366366
async def make_and_send_webhook(

src/util/formatting.py

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ async def format_embed(og_df: pd.DataFrame, type: str, source: str) -> discord.E
181181
# Format the data
182182
df.rename(
183183
columns={
184+
"symbol": "Symbol",
184185
"regularMarketPrice": "Price",
185186
"regularMarketChange": "% Change",
186187
"regularMarketVolume": "Volume",

src/util/tweet_embed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ async def add_financials(
200200
util.vars.classified_tickers = remove_old_rows(util.vars.classified_tickers, 3)
201201
classified_tickers = util.vars.classified_tickers["ticker"].tolist()
202202

203-
for ticker in symbols:
203+
for ticker in symbols[24:]:
204204
if crypto > stocks and crypto > forex:
205205
majority = "crypto"
206206
elif stocks > crypto and stocks > forex:

0 commit comments

Comments
 (0)