File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,12 @@ export const receiptBalloonText = (
37
37
. codepage ( 'cp936' )
38
38
. setPinterType ( config . balloonType ?? 80 ) // wrong typo in the library
39
39
. align ( 'center' )
40
+ . line ( '' )
40
41
. bold ( true )
41
42
. size ( 2 )
42
43
. line ( i18n [ lang ] . receipt )
43
44
. emptyLine ( 1 )
44
- . line ( `ID: ${ id } ` )
45
+ . line ( `ID: ${ String ( id ) . substring ( 0 , 8 ) } ` )
45
46
. emptyLine ( 1 )
46
47
. bold ( false )
47
48
. size ( 1 )
@@ -55,14 +56,14 @@ export const receiptBalloonText = (
55
56
. align ( 'center' )
56
57
. bold ( true )
57
58
. line ( '================================' )
58
- . emptyLine ( 2 )
59
+ . emptyLine ( 1 )
59
60
. size ( 0 )
60
61
. line ( `${ i18n [ lang ] . team } : ${ teamname } ` )
61
62
. line ( `${ i18n [ lang ] . status } :` )
62
63
. line ( `${ status } ` )
63
- . emptyLine ( 2 )
64
+ . emptyLine ( 1 )
64
65
. line ( 'Powered by hydro-dev/xcpc-tools' )
65
- . emptyLine ( 3 )
66
+ . emptyLine ( 2 )
66
67
. cut ( )
67
68
. encode ( ) ;
68
69
Original file line number Diff line number Diff line change @@ -223,9 +223,9 @@ class HydroFetcher extends BasicFetcher {
223
223
rgb : this . contest . info . balloon [ balloon . pid ] . color ,
224
224
color : this . contest . info . balloon [ balloon . pid ] . name ,
225
225
} ;
226
- await this . ctx . db . balloon . update ( { balloonid : balloon . _id . substring ( 0 , 8 ) } , {
226
+ await this . ctx . db . balloon . update ( { balloonid : balloon . _id } , {
227
227
$set : {
228
- balloonid : balloon . _id . substring ( 0 , 8 ) ,
228
+ balloonid : balloon . _id ,
229
229
time : balloon . time ,
230
230
problem : contestproblem . short_name ,
231
231
contestproblem,
You can’t perform that action at this time.
0 commit comments