xcpcio 0.65.0__py3-none-any.whl → 0.65.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of xcpcio might be problematic. Click here for more details.

xcpcio/__version__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is auto-generated by Hatchling. As such, do not:
2
2
  # - modify
3
3
  # - track in version control e.g. be sure to add to .gitignore
4
- __version__ = VERSION = '0.65.0'
4
+ __version__ = VERSION = '0.65.1'
xcpcio/types.py CHANGED
@@ -74,15 +74,6 @@ class I18NStringSet(BaseModel):
74
74
  Text = Union[str, I18NStringSet]
75
75
 
76
76
 
77
- class Person(BaseModel):
78
- name: Text
79
- cf_id: Optional[str] = None
80
- icpc_id: Optional[str] = None
81
-
82
-
83
- Persons = List[Person]
84
-
85
-
86
77
  class Image(BaseModel):
87
78
  url: Optional[str] = None
88
79
  base64: Optional[str] = None
@@ -95,6 +86,15 @@ class BalloonColor(BaseModel):
95
86
  background_color: str
96
87
 
97
88
 
89
+ class Person(BaseModel):
90
+ name: Text
91
+ cf_id: Optional[str] = None
92
+ icpc_id: Optional[str] = None
93
+
94
+
95
+ Persons = List[Person]
96
+
97
+
98
98
  class Problem(BaseModel):
99
99
  id: str
100
100
  label: str
@@ -108,7 +108,7 @@ Problems = List[Problem]
108
108
 
109
109
 
110
110
  class SubmissionReaction(BaseModel):
111
- url: Optional[str] = None
111
+ url: str
112
112
 
113
113
 
114
114
  class Submission(BaseModel):
@@ -129,7 +129,7 @@ class Submission(BaseModel):
129
129
 
130
130
 
131
131
  class Submissions(RootModel[List[Submission]]):
132
- root: List[Submission]
132
+ pass
133
133
 
134
134
 
135
135
  class Team(BaseModel):
@@ -138,7 +138,7 @@ class Team(BaseModel):
138
138
 
139
139
  organization: str = ""
140
140
  group: List[str] = Field(default_factory=list)
141
- tag: List[str] = Field(default_factory=list)
141
+ tag: Optional[List[str]] = None
142
142
 
143
143
  coaches: Optional[Union[Text, List[Text], Persons]] = None
144
144
  members: Optional[Union[Text, List[Text], Persons]] = None
@@ -179,14 +179,13 @@ class Contest(BaseModel):
179
179
 
180
180
  freeze_time: Optional[Union[int, DateTimeISO8601String]] = None
181
181
  frozen_time: int = 60 * 60 # unit: seconds
182
- unfrozen_time: int = 0x3F3F3F3F3F3F3F3F
183
182
 
184
183
  problems: Optional[Problems] = None
185
- problem_quantity: int = 0
186
- problem_id: List[str] = Field(default_factory=list)
184
+
185
+ problem_id: Optional[List[str]] = None
187
186
  balloon_color: Optional[List[BalloonColor]] = None
188
187
 
189
- status_time_display: Optional[Dict[str, bool]] = constants.FULL_STATUS_TIME_DISPLAY
188
+ status_time_display: Dict[str, bool] = constants.FULL_STATUS_TIME_DISPLAY
190
189
 
191
190
  badge: Optional[str] = None
192
191
  organization: str = "School"
@@ -205,14 +204,16 @@ class Contest(BaseModel):
205
204
 
206
205
  options: ContestOptions = Field(default_factory=ContestOptions)
207
206
 
207
+ unfrozen_time: int = 0x3F3F3F3F3F3F3F3F
208
+
208
209
  def append_balloon_color(self, color: BalloonColor):
209
210
  if self.balloon_color is None:
210
211
  self.balloon_color = []
211
212
  self.balloon_color.append(color)
212
213
  return self
213
214
 
214
- def fill_problem_id(self):
215
- self.problem_id = [chr(ord("A") + i) for i in range(self.problem_quantity)]
215
+ def fill_problem_id(self, problem_quantity: int):
216
+ self.problem_id = [chr(ord("A") + i) for i in range(problem_quantity)]
216
217
  return self
217
218
 
218
219
  def fill_balloon_color(self):
@@ -232,7 +233,6 @@ class Contest(BaseModel):
232
233
  BalloonColor(background_color="rgba(144, 238, 144, 0.7)", color="#000"),
233
234
  BalloonColor(background_color="rgba(77, 57, 0, 0.7)", color="#fff"),
234
235
  ]
235
-
236
- self.balloon_color = default_balloon_color_list[: self.problem_quantity]
236
+ self.balloon_color = default_balloon_color_list[: len(self.problem_id)]
237
237
 
238
238
  return self
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xcpcio
3
- Version: 0.65.0
3
+ Version: 0.65.1
4
4
  Summary: xcpcio python lib
5
5
  Project-URL: homepage, https://github.com/xcpcio/xcpcio
6
6
  Project-URL: documentation, https://github.com/xcpcio/xcpcio
@@ -1,7 +1,7 @@
1
1
  xcpcio/__init__.py,sha256=NB6wpVr5JUrOx2vLIQSVtYuCz0d7kNFE39TSQlvoENk,125
2
- xcpcio/__version__.py,sha256=uSD0tE8vcfG2kBfQmbthAcsvXUvzg1w2cXDA2Bunbco,172
2
+ xcpcio/__version__.py,sha256=VBPsXdwddysU3SJE-BBz0H6duBTyQFGRD6HQcyRwc84,172
3
3
  xcpcio/constants.py,sha256=MjpAgNXiBlUsx1S09m7JNT-nekNDR-aE6ggvGL3fg0I,2297
4
- xcpcio/types.py,sha256=CJYZc3RIWKYFbXIpyqt8fZANqJUMR66vLPno6nFyegA,7466
4
+ xcpcio/types.py,sha256=jO5ka10DD6ENd_6eOx1ddSwmYhPjZOaYHmU2qDtuN5s,7383
5
5
  xcpcio/api/__init__.py,sha256=B9gLdAlR3FD7070cvAC5wAwMy3iV63I8hh4mUrnrKpk,274
6
6
  xcpcio/api/client.py,sha256=BuzH8DbJYudJ-Kne-2XziLW__B_7iEqElJ4n2SGZCoY,2374
7
7
  xcpcio/api/models.py,sha256=_dChApnIHVNN3hEL7mR5zonq8IUcxW_h7z1kUz6reSs,772
@@ -40,7 +40,7 @@ xcpcio/clics/model/model_2023_06/model.py,sha256=bVMDWpJTwPSpz1fHPxWrWerxCBIboH3
40
40
  xcpcio/clics/reader/__init__.py,sha256=Nfi78X8J1tJPh7WeSRPLMRUprlS2JYelYJHW4DfyJ7U,162
41
41
  xcpcio/clics/reader/contest_package_reader.py,sha256=0wIzQp4zzdaB10zMY4WALLIeoXcMuhMJ6nRrfKxWhgw,14179
42
42
  xcpcio/clics/reader/interface.py,sha256=lK2JXU1n8GJ4PecXnfFBijMaCVLYk404e4QwV_Ti2Hk,3918
43
- xcpcio-0.65.0.dist-info/METADATA,sha256=8VaTk5-ea4wUe-gBv4j2GfrErvY-Yk8l5ey6ouzMHkI,2233
44
- xcpcio-0.65.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
45
- xcpcio-0.65.0.dist-info/entry_points.txt,sha256=JYkvmmxKFWv0EBU6Ys65XsjkOO02KGlzASau0GX9TQ8,110
46
- xcpcio-0.65.0.dist-info/RECORD,,
43
+ xcpcio-0.65.1.dist-info/METADATA,sha256=5IYHoE0RFCb6_d226D76AKaWRwvn764SyYeL5TJfTs4,2233
44
+ xcpcio-0.65.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
45
+ xcpcio-0.65.1.dist-info/entry_points.txt,sha256=JYkvmmxKFWv0EBU6Ys65XsjkOO02KGlzASau0GX9TQ8,110
46
+ xcpcio-0.65.1.dist-info/RECORD,,