Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
734b571b
Commit
734b571b
authored
2 years ago
by
Štěpán Farka
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/test' into bugfix/main-misc-enhancements-4
parents
2ce2dd52
83be11bf
No related branches found
No related tags found
2 merge requests
!625
Release
,
!620
image resolution fixes
Pipeline
#9777
passed
2 years ago
Stage: build
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
twitter_utils/services.py
+5
-3
5 additions, 3 deletions
twitter_utils/services.py
with
5 additions
and
3 deletions
twitter_utils/services.py
+
5
−
3
View file @
734b571b
...
...
@@ -56,7 +56,7 @@ class TweetDownloadService:
user_fields
=
[
"
name
"
,
"
username
"
],
)
return
tweets_response
.
data
return
tweets_response
.
data
or
[]
def
get_user_list_data
(
self
)
->
list
[
"
User
"
]:
twitter_usernames_block
=
MainHomePage
.
objects
.
first
().
twitter_usernames
...
...
@@ -68,7 +68,9 @@ class TweetDownloadService:
homepage_username_list
=
[
username_data
[
"
value
"
]
for
username_data
in
twitter_usernames_block
.
raw_data
]
username_list
=
[
*
person_username_list
,
*
homepage_username_list
]
# kvůli duplicitám udělám list/set/list konverzi
username_list
=
list
({
*
person_username_list
,
*
homepage_username_list
})
user_data_list
=
[]
...
...
@@ -112,7 +114,7 @@ class TweetDownloadService:
author_name
=
user_data
.
name
,
author_username
=
user_data
.
username
,
text
=
tweet
.
text
,
twitter_id
=
tweet
.
id
,
twitter_id
=
str
(
tweet
.
id
)
,
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment