-
Notifications
You must be signed in to change notification settings - Fork 20
the server is not able to find generated files until server restart #42
Comments
the issue is that, the server gives 404 when requested the generated file even if its there. |
this is run on boot https://github.com/pbsds/hatena-server/blob/master/hatena.py#L166 |
Didn't catch that line, mb. Will test updating it manually every time an ugomenu generates and post the results in a few hours when i get on pc |
called the function after importing from hatena.py after some tests no problems happend. |
you may have to implement some getChild logic to dynamically traverse the files tree |
I see. i will try to implement it in the near future. |
even tho the code traverses the files and lists them in the console it refuses to update till the server restarts |
how Twisted works is that each file or folder is represented with a class/object. Instead of attaching children to the root object at startup, you can override the getChild methods to do the traversal at the time a request happens. |
that is for example what happens here https://github.com/pbsds/hatena-server/blob/master/hatena.py#L53C6-L53C14 |
any way to call a server update??
The text was updated successfully, but these errors were encountered: