Permalink
Browse files

Correct pycroft api schema

  • Loading branch information...
Georgeto committed Feb 11, 2019
1 parent 159f8eb commit 145e7e637dba76576e6bc8b3a103f83731ec0986
Showing with 6 additions and 6 deletions.
  1. +5 −5 sipa/model/pycroft/schema.py
  2. +1 −1 sipa/model/pycroft/user.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from __future__ import annotations
from typing import List
from typing import List, Optional

from sipa.model.pycroft.unserialize import unserializer

@@ -10,7 +10,7 @@ class UserData:
id: int
user_id: str
login: str
realname: str
name: str
status: UserStatus
room: str
mail: str
@@ -45,9 +45,9 @@ class Interface:
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: int
egress: int
balance: int
ingress: Optional[int]
egress: Optional[int]
balance: Optional[int]


@unserializer
@@ -83,7 +83,7 @@ def traffic_history(self):

@active_prop
def realname(self):
return self.user_data.realname
return self.user_data.name

@active_prop
def login(self):

0 comments on commit 145e7e6

Please sign in to comment.