mirror of
https://github.com/miaowware/qrm2.git
synced 2025-02-03 09:44:07 -05:00
parent
f26a7af928
commit
2eea7dce23
@ -72,15 +72,6 @@ paths = SimpleNamespace(
|
|||||||
# --- Classes ---
|
# --- Classes ---
|
||||||
|
|
||||||
|
|
||||||
class CallsignInfoData:
|
|
||||||
"""Represents a country's callsign info"""
|
|
||||||
def __init__(self, data: list):
|
|
||||||
self.title: str = data[0]
|
|
||||||
self.desc: str = data[1]
|
|
||||||
self.calls: str = data[2]
|
|
||||||
self.emoji: str = data[3]
|
|
||||||
|
|
||||||
|
|
||||||
class ImageMetadata:
|
class ImageMetadata:
|
||||||
"""Represents the metadata of a single image."""
|
"""Represents the metadata of a single image."""
|
||||||
def __init__(self, metadata: list):
|
def __init__(self, metadata: list):
|
||||||
|
@ -7,12 +7,22 @@ This file is part of discord-qrmbot and is released under the terms of
|
|||||||
the GNU General Public License, version 2.
|
the GNU General Public License, version 2.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from .callsigninfos import (us, ca)
|
from .callsigninfos import (us, ca)
|
||||||
from common import CallsignInfoData
|
|
||||||
|
|
||||||
|
|
||||||
# format: country: (title, description, text)
|
@dataclass
|
||||||
|
class CallsignInfoData:
|
||||||
|
"""Represents a country's callsign info"""
|
||||||
|
title: str = ""
|
||||||
|
desc: str = ""
|
||||||
|
calls: str = ""
|
||||||
|
emoji: str = ""
|
||||||
|
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
"us": CallsignInfoData([us.title, us.desc, us.calls, us.emoji]),
|
"us": CallsignInfoData(us.title, us.desc, us.calls, us.emoji),
|
||||||
"ca": CallsignInfoData([ca.title, ca.desc, ca.calls, ca.emoji]),
|
"ca": CallsignInfoData(ca.title, ca.desc, ca.calls, ca.emoji),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user