Skip to content

Commit c2bc80e

Browse files
author
Daniel Dale
committed
added current predictions explorer among other improvements for 0.1.1 release
1 parent 98b6524 commit c2bc80e

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

db_setup/dcbot_tweets_init_20200814.sql renamed to db_setup/dcbot_tweets_init_20200910.sql

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

db_setup/deep_classiflie_db_core_tables.sql

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,23 @@ COMMENT='pinata credentials for pinata';
269269
drop table if exists cloudflare_creds;
270270
CREATE TABLE cloudflare_creds (
271271
api_key varchar(80) NOT NULL COMMENT 'api secret key for cloudflare',
272+
zone_id varchar(80) NOT NULL COMMENT 'zone_id for relevant cloudflare domain',
273+
dns_record_id_prod varchar(80) NOT NULL COMMENT 'record id for prod TXT record',
274+
dns_record_id_dev varchar(80) NOT NULL COMMENT 'record id for dev TXT record',
272275
account_email varchar(80) NOT NULL COMMENT ''
273276
)
274277
ENGINE=InnoDB
275278
DEFAULT CHARSET=utf8mb4
276279
COLLATE=utf8mb4_unicode_ci
277-
COMMENT='api dns update credentials for cloudflare';
280+
COMMENT='api dns update credentials for cloudflare';
281+
drop table if exists pinned_cids;
282+
CREATE TABLE pinned_cids (
283+
pin_svc_id INT NOT NULL COMMENT 'pinning service used, initially only pinata=1',
284+
cid VARCHAR(150) NOT NULL COMMENT 'ipfs has of content',
285+
pinsize INT NOT NULL COMMENT 'size in bytes of pinned content',
286+
p_date TIMESTAMP NOT NULL DEFAULT 0 COMMENT 'timestamp pin logged'
287+
)
288+
ENGINE=InnoDB
289+
DEFAULT CHARSET=utf8mb4
290+
COLLATE=utf8mb4_unicode_ci
291+
COMMENT='pinned cids';

db_setup/deep_classiflie_db_reporting_objects.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ where t.tid=s.tid and s.tid=isp.tid and s.sid=isp.sid and t.t_date > lm.inf_star
10991099
analyze_ids as
11001100
(select us.tid, us.sid from unlabeled_stmts us left join published_stmts ps
11011101
on us.tid=ps.tid and us.sid=ps.sid where ps.tid is NULL)
1102-
select s.tid, s.sid, t.t_date, t.transcript_url, statement_text from fbase_statements s, fbase_transcripts t, analyze_ids ai where t.tid=s.tid and s.tid=ai.tid and s.sid = ai.sid and s.wc between 7 and 107;
1102+
select s.tid, s.sid, statement_text, 0 as ctxt_type, t.t_date, t.transcript_url as url from fbase_statements s, fbase_transcripts t, analyze_ids ai where t.tid=s.tid and s.tid=ai.tid and s.sid = ai.sid and s.wc between 7 and 107;
11031103
create or replace view tweets_to_analyze as
11041104
with latest_metadata as
11051105
(select mm.model_version as model_version, DATE_ADD(dm.test_end_date, INTERVAL 1 DAY) as inf_start_date from model_metadata mm, ds_metadata dm
@@ -1114,5 +1114,5 @@ where itp.thread_id=dt.thread_id and dt.t_end_date > lm.inf_start_date),
11141114
analyze_ids as
11151115
(select ut.thread_id from unlabeled_tweets ut left join published_tweets pt
11161116
on ut.thread_id=pt.thread_id where pt.thread_id is NULL)
1117-
select dt.thread_id, dt.t_end_date, dt.end_thread_tweet_id, statement_text from dcbot_tweets dt, analyze_ids ai
1117+
select dt.thread_id, dt.end_thread_tweet_id, statement_text, 1 as ctxt_type, dt.t_end_date, CONCAT('https://twitter.com/a/status/',dt.end_thread_tweet_id) as url from dcbot_tweets dt, analyze_ids ai
11181118
where dt.thread_id=ai.thread_id and dt.wc between 7 and 107 and dt.retweet=0;

0 commit comments

Comments
 (0)