Skip to content

Commit

Permalink
PredictionFeedback -> PredictionsFeedback
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Nov 14, 2023
1 parent 044122a commit 68eb39a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mysql/docker-entrypoint-initdb.d/01_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ CREATE TABLE Predictions (
unknown_bot DECIMAL(5, 2) DEFAULT 0
);
-- Create a table for Feedback
CREATE TABLE PredictionFeedback (
CREATE TABLE PredictionsFeedback (
id INT PRIMARY KEY AUTO_INCREMENT,
ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
voter_id INT NOT NULL,
Expand Down
4 changes: 2 additions & 2 deletions mysql/docker-entrypoint-initdb.d/02_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ INSERT INTO playerdata.Labels (label) VALUES
('Zulrah_bot')
;

INSERT INTO PredictionFeedback (voter_id, subject_id, prediction, confidence, feedback_text, vote, proposed_label)
INSERT INTO PredictionsFeedback (voter_id, subject_id, prediction, confidence, feedback_text, vote, proposed_label)
SELECT
pl1.id AS voter_id,
pl2.id AS subject_id,
Expand All @@ -231,7 +231,7 @@ JOIN Predictions pr ON pr.id = pl2.id
ORDER BY RAND(42)
LIMIT 100;

UPDATE PredictionFeedback
UPDATE PredictionsFeedback
SET proposed_label = prediction
WHERE 1=1
AND vote = 1
Expand Down
2 changes: 1 addition & 1 deletion src/core/database/models/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class PredictionFeedback(Base):
__tablename__ = "PredictionFeedback"
__tablename__ = "PredictionsFeedback"

id = Column(Integer, primary_key=True, autoincrement=True)
ts = Column(TIMESTAMP, nullable=False, server_default="CURRENT_TIMESTAMP")
Expand Down

0 comments on commit 68eb39a

Please sign in to comment.