Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
asesidaa committed Mar 3, 2023
2 parents cd5c06c + f0a1dbc commit a0eefdc
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,48 @@ To unlock all songs, first play for one time and save, then in web UI, go to `Ed

Notice that unlock all songs without playing them can increase card saving time a lot, so it is better to play them, or manually create an empty failed record, using the following SQL

```sqlite
INSERT INTO "main"."card_detail" VALUES ({card_id}, {song_id}, 0, 2, 5, 1, 0,0,0,0,0,0,'1337',0,0,0,638127691353989741);
```sql
INSERT INTO card_detail (
card_id,
pcol1,
pcol2,
pcol3,
fcol1,
fcol2,
fcol3,
last_play_tenpo_id,
last_play_time,
score_bi1,
score_i1,
score_ui1,
score_ui2,
score_ui3,
score_ui4,
score_ui5,
score_ui6
) SELECT
c1.card_id,
20 AS pcol1,
c1.pcol2,
0 AS pcol3,
0 AS fcol1,
0 AS fcol2,
0 AS fcol3,
1337 AS last_play_tenpo_id,
c1.last_play_time,
0 AS score_bi1,
5 AS score_i1,
1 AS score_ui1,
0 AS score_ui2,
0 AS score_ui3,
0 AS score_ui4,
0 AS score_ui5,
0 AS score_ui6
FROM
( SELECT * FROM card_detail WHERE pcol1 = 10 ) c1
LEFT JOIN ( SELECT * FROM card_detail WHERE pcol1 = 20 ) c2 ON c1.pcol2 = c2.pcol2
WHERE
c2.card_id IS NULL;
```

# Online Matching
Expand Down

0 comments on commit a0eefdc

Please sign in to comment.