PvJScorebot/Scorebot-Core

Unable to add Service Content

Closed this issue · 3 comments

Released i posted this under my none usual git account, so...adding again :) Apologises

OK, so i've got Scorebot running pretty well now. And can monitor services etc.

I'm now trying to add a Service Content, which i assume is a way to check a service for specific content (e.g A specific webpage)

In the Django interface, whenever i try adding a Service Content, no matter what i set as the "Content Type" it fails, and gives me a big error. (Parts of it below)

image

It seems to be related to scorebot_grid/models.py

image

Any ideas what could be causing this?
Many Thanks

Thanks for the info!

I found the exact cause for this problem. Due to how Content objects where implemented, their One-to-One relationship was ment to be created during game init, but when creating via the Admin panel it fails due to lacking the Service object. The "str" function is causing this.

I am currently working on some bugfixes for scorebot, so I will roll this as well into the fix and close once pushed.

In the meantime, if you would like to create service content objects without issues. You can delete the "str" function from the Content model at scorebot_grid/models.py, line 445-447.

Thanks, I appreciate the input and feedback!

image

BOOM! You absolute legend! Thanks heaps for that man :)

Fix was rolled into the v3.5 release.