Skip to content

Sourcery refactored master branch#1

Open
sourcery-ai[bot] wants to merge 1 commit intomasterfrom
sourcery/master
Open

Sourcery refactored master branch#1
sourcery-ai[bot] wants to merge 1 commit intomasterfrom
sourcery/master

Conversation

@sourcery-ai
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot commented Mar 4, 2022

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

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

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai Bot requested a review from MiracleShadow March 4, 2022 06:31
Comment thread front/views.py
url=self.url_prefix, page_num=self.total_page))
page_html = "".join(html_str_list)
return page_html
return "".join(html_str_list)
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 Page.page_html refactored with the following changes:

Comment thread front/views.py
Comment on lines -168 to +167
context = {
return {
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 Weather.context refactored with the following changes:

Comment thread front/views.py
Comment on lines -533 to +539
data[i] = {}
data[i]['download'] = u[i].DownloadDocount
data[i]['filename'] = u[i].name
data[i]['id'] = u[i].id
data[i]['ip'] = str(u[i].PCIP)
data[i]['size'] = u[i].Filesize
data[i]['time'] = str(u[i].Datatime.strftime('%Y-%m-%d %H:%M:%S'))
data[i] = {
'download': u[i].DownloadDocount,
'filename': u[i].name,
'id': u[i].id,
'ip': str(u[i].PCIP),
'size': u[i].Filesize,
'time': str(u[i].Datatime.strftime('%Y-%m-%d %H:%M:%S')),
}

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 SearchView.get 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.

0 participants