Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Twint
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Twint
Commits
e3345426
Commit
e3345426
authored
May 16, 2020
by
Iván H
Committed by
GitHub
May 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
: (#753)
parent
f0784ad2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
twint/storage/db.py
twint/storage/db.py
+1
-1
twint/storage/elasticsearch.py
twint/storage/elasticsearch.py
+1
-1
No files found.
twint/storage/db.py
View file @
e3345426
...
...
@@ -96,7 +96,7 @@ def init(db):
username text not null,
tweet_id integer not null,
retweet_id integer not null,
retweet_date integer
not null
,
retweet_date integer,
CONSTRAINT retweets_pk PRIMARY KEY(user_id, tweet_id),
CONSTRAINT user_id_fk FOREIGN KEY(user_id) REFERENCES users(id),
CONSTRAINT tweet_id_fk FOREIGN KEY(tweet_id) REFERENCES tweets(id)
...
...
twint/storage/elasticsearch.py
View file @
e3345426
...
...
@@ -97,7 +97,7 @@ def createIndex(config, instance, **scope):
"username"
:
{
"type"
:
"keyword"
}
}
},
"retweet_date"
:
{
"type"
:
"date"
,
"format"
:
"yyyy-MM-dd HH:mm:ss"
},
"retweet_date"
:
{
"type"
:
"date"
,
"format"
:
"yyyy-MM-dd HH:mm:ss"
,
"ignore_malformed"
:
True
},
"urls"
:
{
"type"
:
"keyword"
},
"translate"
:
{
"type"
:
"text"
},
"trans_src"
:
{
"type"
:
"keyword"
},
...
...
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