Skip to content

Commit

Permalink
change table name
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Apr 26, 2024
1 parent 15da32b commit d47f477
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions submission_report/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def bad_submissions(self, submitter, start_date, end_date):
remote_addr,
block_hash,
state_hash
FROM submissions_by_submitter
FROM submissions
WHERE
submitter = %s
AND submitted_at_date BETWEEN %s AND %s
Expand All @@ -40,7 +40,7 @@ def total_submissions(self, submitter, start_date, end_date):
COUNT(*) FILTER (WHERE validation_error = '') AS validated_submissions,
COUNT(*) FILTER (WHERE validation_error != '') AS unvalidated_submissions,
COUNT(*) FILTER (WHERE verified is not true) AS unverified_submissions
FROM submissions_by_submitter
FROM submissions
WHERE submitter = %s AND submitted_at_date BETWEEN %s AND %s;
"""
try:
Expand All @@ -64,7 +64,7 @@ def submissions_per_batch(self, submitter, start_date, end_date):
FROM
bot_logs b
LEFT JOIN
submissions_by_submitter s
submissions s
ON
s.submitted_at BETWEEN
(to_timestamp(b.batch_start_epoch) AT TIME ZONE 'UTC')::timestamp without time zone
Expand Down

0 comments on commit d47f477

Please sign in to comment.