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
68a836cf
Commit
68a836cf
authored
May 15, 2019
by
Serbaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert coordinates to dict
parent
988d80a1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
HISTORY.rst
HISTORY.rst
+2
-0
setup.py
setup.py
+1
-1
.tweet.py.swp
tweet_model/.tweet.py.swp
+0
-0
tweet.py
tweet_model/tweet.py
+5
-1
No files found.
HISTORY.rst
View file @
68a836cf
...
...
@@ -85,3 +85,5 @@ Version 0.5.2:
Added method to get Tweet in JSON form
Version 0.5.3:
Coordinates stored as list and not as str
Version 0.5.4:
Minor fix
setup.py
View file @
68a836cf
...
...
@@ -51,6 +51,6 @@ setup(
test_suite
=
'tests'
,
tests_require
=
test_requirements
,
url
=
'https://github.com/Serbaf/tweet_model'
,
version
=
'0.5.
3
'
,
version
=
'0.5.
4
'
,
zip_safe
=
False
,
)
tweet_model/.tweet.py.swp
deleted
100644 → 0
View file @
988d80a1
File deleted
tweet_model/tweet.py
View file @
68a836cf
...
...
@@ -223,7 +223,11 @@ class Tweet():
# Coordinates object
self
.
coordinates
=
{}
self
.
coordinates
[
"coordinates"
]
=
json
.
loads
(
coordinates__coordinates
)
try
:
self
.
coordinates
[
"coordinates"
]
=
\
json
.
loads
(
coordinates__coordinates
)
except
TypeError
:
self
.
coordinates
[
"coordinates"
]
=
coordinates__coordinates
self
.
coordinates
[
"type"
]
=
coordinates__type
# Place object
...
...
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