skybaks / pyplanet-cup_manager

Competition Management Plugin for Trackmania Pyplanet
GNU General Public License v3.0
6 stars 2 forks source link

[Command] /cup results give a response even though there is nothing to show for #41

Closed w1lla closed 1 year ago

w1lla commented 1 year ago

If i use a empty database and set the plugin up, i can use /cup matches which gives none which is correct but /cup results shows a window/manialink and i can seem to press each thing.

[2022-09-16 23:11:34,456][DEBUG][default] peewee.async: ('SELECT `t1`.`id`, `t1`.`created_at`, `t1`.`updated_at`, `t1`.`cup_start_time`, `t1`.`map_start_time` FROM `cup_manager_cupmatch_v1` AS t1 ORDER BY `t1`.`cup_start_time` DESC', ([],), {}) (peewee_async.py:1534)
[2022-09-16 23:11:34,458][DEBUG][default] peewee.async: ('SELECT `t1`.`id`, `t1`.`created_at`, `t1`.`updated_at`, `t1`.`map_start_time`, `t1`.`mode_script`, `t1`.`map_name`, `t1`.`map_uid`, `t1`.`mx_id` FROM `cup_manager_matchinfo_v1` AS t1 ORDER BY `t1`.`map_start_time` DESC', ([],), {}) (peewee_async.py:1534)
[2022-09-16 23:16:09,070][DEBUG][default] peewee.async: ('SELECT `t1`.`id`, `t1`.`created_at`, `t1`.`updated_at`, `t1`.`cup_start_time`, `t1`.`cup_key`, `t1`.`cup_name`, `t1`.`cup_edition`, `t1`.`cup_host_login`, `t1`.`cup_host_nickname` FROM `cup_manager_cupinfo_v1` AS t1 ORDER BY `t1`.`cup_start_time` DESC', ([],), {}) (peewee_async.py:1534)
[2022-09-16 23:16:22,902][DEBUG][default] root: No callback registered for Script.Maniaplanet.EndMap_Start (manager.py:102)

Same goes for /cup cups

I know it seems weird behaviour.

skybaks commented 1 year ago

Yeah this is a bug which I likely overlooked because my testing database is empty. I'll check into this and correct it.

skybaks commented 1 year ago

Fixed as part of #53