Skip to content

Commit 1e75a31

Browse files
committed
末尾の空白を削除
1 parent 1331d79 commit 1e75a31

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

atcoder-problems-backend/sql-client/src/internal/virtual_contest_manager.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl VirtualContestManager for PgPool {
157157
async fn get_own_contests(&self, internal_user_id: &str) -> Result<Vec<VirtualContestInfo>> {
158158
let contests = sqlx::query_as(
159159
r"
160-
SELECT
160+
SELECT
161161
id,
162162
title,
163163
memo,
@@ -184,7 +184,7 @@ impl VirtualContestManager for PgPool {
184184
) -> Result<Vec<VirtualContestInfo>> {
185185
let contests = sqlx::query_as(
186186
r"
187-
SELECT
187+
SELECT
188188
a.id,
189189
a.title,
190190
a.memo,
@@ -234,7 +234,7 @@ impl VirtualContestManager for PgPool {
234234
async fn get_single_contest_participants(&self, contest_id: &str) -> Result<Vec<String>> {
235235
let participants = sqlx::query(
236236
r"
237-
SELECT
237+
SELECT
238238
b.atcoder_user_id
239239
FROM (
240240
SELECT internal_user_id
@@ -280,7 +280,7 @@ impl VirtualContestManager for PgPool {
280280
async fn get_recent_contest_info(&self) -> Result<Vec<VirtualContestInfo>> {
281281
let contests = sqlx::query_as(
282282
r"
283-
SELECT
283+
SELECT
284284
id,
285285
title,
286286
memo,

atcoder-problems-backend/sql-client/src/language_count.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl LanguageCountClient for PgPool {
113113
async fn load_language_count(&self) -> Result<Vec<UserLanguageCount>> {
114114
let count = sqlx::query_as(
115115
r"
116-
SELECT
116+
SELECT
117117
user_id,
118118
simplified_language,
119119
problem_count

atcoder-problems-backend/sql-client/src/rated_point_sum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl RatedPointSumClient for PgPool {
2727
GROUP BY contest_id
2828
) AS contest_problem_count
2929
JOIN contests ON contests.id=contest_problem_count.contest_id
30-
WHERE
30+
WHERE
3131
contests.start_epoch_second >= $1
3232
AND contests.rate_change != $2
3333
AND contest_problem_count.problem_count >= 2

atcoder-problems-backend/sql-client/src/simple_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl SimpleClient for PgPool {
114114
async fn load_contests(&self) -> Result<Vec<Contest>> {
115115
let contests = sqlx::query_as(
116116
r"
117-
SELECT
117+
SELECT
118118
id,
119119
start_epoch_second,
120120
duration_second,

atcoder-problems-backend/sql-client/src/submission_client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ impl SubmissionClient for PgPool {
136136
SubmissionRequest::InvalidResult { from_second } => sqlx::query_as(
137137
r"
138138
SELECT * FROM submissions
139-
WHERE
139+
WHERE
140140
result != ALL(
141141
ARRAY['AC', 'WA', 'TLE', 'CE', 'RE', 'MLE', 'OLE', 'QLE', 'IE', 'NG']
142142
)
143-
AND
143+
AND
144144
epoch_second >= $1
145145
ORDER BY id DESC
146146
",

config/database-definition.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ CREATE INDEX ON internal_virtual_contest_items (internal_virtual_contest_id);
186186
CREATE TABLE internal_virtual_contest_participants (
187187
internal_virtual_contest_id VARCHAR(255) REFERENCES internal_virtual_contests(id) ON DELETE CASCADE ON UPDATE CASCADE,
188188
internal_user_id VARCHAR(255) REFERENCES internal_users ON DELETE CASCADE ON UPDATE CASCADE,
189-
PRIMARY KEY (internal_virtual_contest_id, internal_user_id)
189+
PRIMARY KEY (internal_virtual_contest_id, internal_user_id)
190190
);
191191
CREATE INDEX ON internal_virtual_contest_participants (internal_user_id);
192192

0 commit comments

Comments
 (0)