BoYanZh / Joint-Teapot

A handy and powerful tool for TAs in JI to handle works through Gitea, Canvas, and JOJ.
https://boyanzh.github.io/Joint-Teapot/
MIT License
18 stars 10 forks source link

gitea api resturn empty object_format_name, which will break teapot #37

Closed wznmickey closed 1 month ago

wznmickey commented 3 months ago

Like https://github.com/go-gitea/gitea/issues/31117 in 1.22.0 version, the api will return "". It will make teapot disable to work. A temp solution is comment lines raising the error under @object_format_name.setter in site-packages/focs_gitea/models/repository.py

BoYanZh commented 1 month ago

Fixed in https://github.com/BoYanZh/gitea/commit/55416dc4d63de30f31ff28a2693eba2751fe8485.