Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tweet_model
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
serpucga
tweet_model
Commits
7a7e5b66
Commit
7a7e5b66
authored
Apr 08, 2019
by
Serbaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed fstrings
parent
52a21857
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
HISTORY.rst
HISTORY.rst
+2
-0
setup.py
setup.py
+1
-1
tweet_model.py
tweet_model/tweet_model.py
+1
-1
No files found.
HISTORY.rst
View file @
7a7e5b66
...
@@ -58,3 +58,5 @@ Version 0.4.3:
...
@@ -58,3 +58,5 @@ Version 0.4.3:
Updated tweetmanager dependency to current version (1.1.5)
Updated tweetmanager dependency to current version (1.1.5)
Version 0.4.4:
Version 0.4.4:
Fixed another requirement error
Fixed another requirement error
Version 0.4.5:
Changed f-strings to traditional strings for reasons of compatibility
setup.py
View file @
7a7e5b66
...
@@ -51,6 +51,6 @@ setup(
...
@@ -51,6 +51,6 @@ setup(
test_suite
=
'tests'
,
test_suite
=
'tests'
,
tests_require
=
test_requirements
,
tests_require
=
test_requirements
,
url
=
'https://github.com/Serbaf/tweet_model'
,
url
=
'https://github.com/Serbaf/tweet_model'
,
version
=
'0.4.
4
'
,
version
=
'0.4.
5
'
,
zip_safe
=
False
,
zip_safe
=
False
,
)
)
tweet_model/tweet_model.py
View file @
7a7e5b66
...
@@ -425,7 +425,7 @@ def get_tweets_from_csv(csv_file):
...
@@ -425,7 +425,7 @@ def get_tweets_from_csv(csv_file):
for
component
in
field_components
:
for
component
in
field_components
:
error_string
+=
component
error_string
+=
component
if
(
checking_dict
is
None
)
or
(
component
not
in
checking_dict
):
if
(
checking_dict
is
None
)
or
(
component
not
in
checking_dict
):
logger
.
error
(
f
'The field in the header "{error_string}" '
+
logger
.
error
(
'The field in the header '
+
error_string
+
'is not a valid element of a Tweet'
)
'is not a valid element of a Tweet'
)
raise
NotValidTweetError
(
"Header contains field which doesn't"
raise
NotValidTweetError
(
"Header contains field which doesn't"
+
" belong to tweet specification: "
+
" belong to tweet specification: "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment