ezquiz 0.2.0__py3-none-any.whl → 0.2.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.
ezquiz/apigame.py CHANGED
@@ -21,10 +21,9 @@ class APIGame:
21
21
 
22
22
  def start(
23
23
  self,
24
- mode: Literal["timed", "score", "mistakes", "total", "streak"] = "score",
25
- param=10,
24
+ **fastapi_kw,
26
25
  ):
27
- app = FastAPI()
26
+ app = FastAPI(**fastapi_kw)
28
27
 
29
28
  templates = Jinja2Templates(directory=Path(__file__).parent / "templates")
30
29
 
@@ -262,7 +262,7 @@
262
262
  // Fetch next question
263
263
  async function fetchNextQuestion() {
264
264
  try {
265
- const response = await fetch('/api/next', {
265
+ const response = await fetch('api/next', {
266
266
  method: 'POST',
267
267
  headers: {
268
268
  'Content-Type': 'application/json'
@@ -303,7 +303,7 @@
303
303
  }
304
304
 
305
305
  try {
306
- const response = await fetch('/api/submit', {
306
+ const response = await fetch('api/submit', {
307
307
  method: 'POST',
308
308
  headers: {
309
309
  'Content-Type': 'application/json'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ezquiz
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Add your description here
5
5
  Author-email: Alejandro Rodriguez <alejandro.rodriguez@alexanderthamm.com>
6
6
  Requires-Python: >=3.14
@@ -0,0 +1,9 @@
1
+ ezquiz/__init__.py,sha256=_Ycs0PzsU0K53tGDxZMRP1kQ-TvIrF2_hTYNniOymxo,109
2
+ ezquiz/apigame.py,sha256=bFuPDbf9oYRRiiemzTkoTaCJQixUdvlqorZJOZZhsTU,2552
3
+ ezquiz/cligame.py,sha256=h_bs4Cm-44ibzpacIycEGaprnFWYKsyTJuyoeaGEYRk,325
4
+ ezquiz/ezquiz.py,sha256=ix00WYO6Zy2EFaS1xHvW6dyzGIz7OdTRac7MCcHuGI4,941
5
+ ezquiz/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ ezquiz/templates/index.html,sha256=iJnVwbbP1V-hEusURh8rUKya1MoMl6Yq-8MdOcsWAmI,17260
7
+ ezquiz-0.2.1.dist-info/METADATA,sha256=AzH9WFdBq_bNODGnt3LSLosKaUiLHOxAnrXMBaIZbSk,276
8
+ ezquiz-0.2.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
9
+ ezquiz-0.2.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- ezquiz/__init__.py,sha256=_Ycs0PzsU0K53tGDxZMRP1kQ-TvIrF2_hTYNniOymxo,109
2
- ezquiz/apigame.py,sha256=0AH_Ll4Mxg8FW9UZVei--tXp6rTI9wuEQETnFFX2mR4,2618
3
- ezquiz/cligame.py,sha256=h_bs4Cm-44ibzpacIycEGaprnFWYKsyTJuyoeaGEYRk,325
4
- ezquiz/ezquiz.py,sha256=ix00WYO6Zy2EFaS1xHvW6dyzGIz7OdTRac7MCcHuGI4,941
5
- ezquiz/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- ezquiz/templates/index.html,sha256=2_XCV4ic4_Dfcqsyg0MxvilCAQ06lvKxjOBa9YzLkM0,17262
7
- ezquiz-0.2.0.dist-info/METADATA,sha256=vnLPjO6_NafAFZOWnYyTruX3fS-G-4j6mJ3XWocuQbs,276
8
- ezquiz-0.2.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
9
- ezquiz-0.2.0.dist-info/RECORD,,
File without changes