ansari-project / ansari-backend

Ansari is an AI assistant to help Muslims practice more effectively and non-Muslims to understand Islam
69 stars 13 forks source link

Fix logging error in ansari_db.get_thread() #22

Closed abdullah-alnahas closed 6 months ago

abdullah-alnahas commented 6 months ago

This pull request addresses a minor issue with logging in the get_thread() function of the ansari_db.AnsariDB class.

The previous logging statement used an incorrect format, which led to TypeError: not all arguments converted during string formatting.

I've updated the logging statement to use an f-string for proper string formatting. With this tiny fix, the logging in the get_thread() function now works as expected.

waleedkadous commented 6 months ago

Thank you! Can you point me to the project you mentioned that allows gh actions to run locally so I don't break things again?

abdullah-alnahas commented 6 months ago

Thanks for the merge. Sure, it's act. You can install it using homebrew. After installation, you can run the GitHub action with: act --secret-file .env after you cd to your local repo directory.