-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database Support #14
base: master
Are you sure you want to change the base?
Database Support #14
Conversation
Hii @Araon
|
the del_last_data() is used to delete the last data enterd into the database
the first option is good but there's always a chance that it might repeat outside the 60 batch size, and the second option is better but it's a bit for such a simple bot. |
Yeah we can increase the batch size to 60 |
okay great, I'll push the update asap |
I've refactored the code and removed the part of the code that was checking for dublicate issue in memory, which is now done in the database during insertion. The database deletes the issue that is already been tweeted out. |
Hii @Araon
is actually never getting executed!
|
I am always open to new approaches and I might be missing out your point here. |
Sorry for the late reply!
Let me know what you think about this or if you have any idea how we should tackel this problem. |
Hii @Araon |
Searching for duplicate will not be necessary, because the database will only have unique issues, I've made that sure by making the issue_link column to have the unique attribute. |
Sounds good |
I've added a schedule based database deletion method. it clears the database of all the issue that has been tweeted, denoted by the tweeted colume. Deletion takes place every 15 days. Let me know if i've missed anything 😸 |
In context for issue #3
I've added database support to store the posted issue on a sqlite3 database.
To avoid the same issue being tweeted out twice, the url of the table has the unique attribute,
As the modifications are too large of a change so, i want to make separate commits to ease process of code review.
I intend to add the two new features in the next commit.
TODO