Skip to content
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

Update first_timers.py #118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AniketTripathi05
Copy link

@AniketTripathi05 AniketTripathi05 commented Oct 14, 2023

i have actually formatted the previous code

Fixes #issuenumber

Check everything which applies
#h1

  • I have added the issue number for which this pull request is created.

i have actually  formatted the previous code
@AniketTripathi05
Copy link
Author

i have formatted the code

Copy link
Owner

@arshadkazmi42 arshadkazmi42 left a comment

Choose a reason for hiding this comment

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

Thank you for working on this.

I have left a few comments. Lets get these comments fixed before we can get this merged.

Comment on lines +19 to 20
# Logging helper functions
def log_info(message):
Copy link
Owner

Choose a reason for hiding this comment

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

I think we should get rid of the log comment. I do not see any value from the comment.

Copy link
Author

Choose a reason for hiding this comment

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

ohh okay

Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this is resolved.

associated with the credentials.
Also takes a parameter 'debug', which can prevent actual tweeting.
Returns a list of tweets.
associated with the credentials. Also takes a parameter 'debug', which can
Copy link
Owner

Choose a reason for hiding this comment

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

We do not need this change. The comment from Also takes a parameter .... is expected to be on the second line. Can you revert this back

Copy link
Author

Choose a reason for hiding this comment

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

yup fs

language_hashTags = ''.join(
' #{}'.format(lang) for lang in issue['languages']
)
language_hashTags = ''.join(' #{}'.format(lang) for lang in issue['languages'])
Copy link
Owner

Choose a reason for hiding this comment

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

Same as above, revert this back. It is easier to read it when it is multi line

Copy link
Author

Choose a reason for hiding this comment

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

will do it then

"""Limit the number of issues saved in our DB."""
sorted_issues = sorted(issues, key=lambda x: x['updated_at'], reverse=True)
return sorted_issues[:limit_len]
hashTags = hashTags[:max_hashtags_len - 1] + E
Copy link
Owner

Choose a reason for hiding this comment

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

Seems like you have deleted all the code after this line. Can you revert this please.

Copy link
Author

Choose a reason for hiding this comment

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

okayy

pls review it and tell if anything is wrong
@arshadkazmi42
Copy link
Owner

arshadkazmi42 commented Oct 14, 2023

@AniketTripathi05 Let me know once you are done with the fixes. I will review again.

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.

2 participants