Tornium / tornium

A website and Discord bot to assist with the playing of Torn City developed with love <3
https://tornium.com
11 stars 5 forks source link

Migrate functions of models to tornium-commons #163

Closed dssecret closed 1 year ago

dssecret commented 1 year ago

Migrate the functions and parent classes (latter for models.user.User) for the models in tornium-core to the models in tornium-commons.

dssecret commented 1 year ago

Example:

class TestModel(Document):
    a = IntField(primary_key=True)
    b = IntField()

    def test(self):
        print(self.a)
dssecret commented 1 year ago

Won't implement due to #168