Skip to content

Sourcery Starbot ⭐ refactored UPSAtwal/DiscordBot_OWASP#1

Open
SourceryAI wants to merge 1 commit intoUPSAtwal:masterfrom
SourceryAI:master
Open

Sourcery Starbot ⭐ refactored UPSAtwal/DiscordBot_OWASP#1
SourceryAI wants to merge 1 commit intoUPSAtwal:masterfrom
SourceryAI:master

Conversation

@SourceryAI
Copy link
Copy Markdown

Thanks for starring sourcery-ai/sourcery ✨ 🌟 ✨

Here's your pull request refactoring your most popular Python repo.

If you want Sourcery to refactor all your Python repos and incoming pull requests install our bot.

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch https://github.com/sourcery-ai-bot/DiscordBot_OWASP master
git merge --ff-only FETCH_HEAD
git reset HEAD^

self.config = {}
with open(self.configpath, "r") as file:
for i in file.readlines():
for i in file:
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function Config.__init__ refactored with the following changes:

pass
def scrape(self, text, num, likes, ldate, sdate):
fQuery=fQuery="{} min_faves:{} until:{} since:{}".format(text, likes,ldate,sdate)
fQuery = fQuery = f"{text} min_faves:{likes} until:{ldate} since:{sdate}"
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function Scraper.scrape refactored with the following changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant