2024-04-17 10:51:46 +02:00
|
|
|
from ..util.models import * # pylint: disable=wildcard-import,unused-wildcard-import
|
|
|
|
|
|
|
|
|
|
|
|
class PackageRevision(XmlModel):
|
|
|
|
XML_TAG = "revision"
|
|
|
|
|
|
|
|
rev: int = Field(
|
|
|
|
xml_attribute=True,
|
|
|
|
)
|
|
|
|
|
2024-05-10 13:23:48 +02:00
|
|
|
vrev: Optional[str] = Field(
|
2024-04-17 10:51:46 +02:00
|
|
|
xml_attribute=True,
|
|
|
|
)
|
|
|
|
|
|
|
|
srcmd5: str = Field(
|
|
|
|
)
|
|
|
|
|
|
|
|
version: str = Field(
|
|
|
|
)
|
|
|
|
|
|
|
|
time: int = Field(
|
|
|
|
)
|
|
|
|
|
|
|
|
user: str = Field(
|
|
|
|
)
|
|
|
|
|
|
|
|
comment: Optional[str] = Field(
|
|
|
|
)
|
|
|
|
|
|
|
|
requestid: Optional[int] = Field(
|
|
|
|
)
|
|
|
|
|
|
|
|
def get_time_str(self):
|
|
|
|
import time
|
|
|
|
return time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(self.time))
|