mirror of https://github.com/DJ2LS/FreeDATA.git
Fixed other module's paths
parent
646174b75d
commit
e2b2c73f1a
|
|
@ -1,6 +1,5 @@
|
|||
from fastapi import APIRouter, Depends
|
||||
|
||||
import command_norm
|
||||
import asyncio
|
||||
|
||||
from freedata_server.api.common import api_response, api_abort
|
||||
|
|
@ -13,6 +12,7 @@ from freedata_server.message_system_db_broadcasts import DatabaseManagerBroadcas
|
|||
from freedata_server import command_message_send
|
||||
from freedata_server import adif_udp_logger
|
||||
from freedata_server import wavelog_api_logger
|
||||
from freedata_server import command_norm
|
||||
from freedata_server.context import AppContext, get_ctx
|
||||
from freedata_server.norm.norm_transmission_iss import NormTransmissionISS
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
from command import TxCommand
|
||||
import api_validations
|
||||
from freedata_server.command import TxCommand
|
||||
from freedata_server import api_validations
|
||||
import base64
|
||||
import threading
|
||||
from norm.norm_transmission_iss import NormTransmissionISS
|
||||
from freedata_server.norm.norm_transmission_iss import NormTransmissionISS
|
||||
|
||||
|
||||
class Norm(TxCommand):
|
||||
|
|
|
|||
|
|
@ -725,7 +725,6 @@ class DataFrameFactory:
|
|||
def build_norm_data(
|
||||
self, origin, domain, gridsquare, timestamp, burst_info, payload_size, payload_data, flag, checksum
|
||||
):
|
||||
|
||||
payload = {
|
||||
"origin": helpers.callsign_to_bytes(origin),
|
||||
"domain": helpers.callsign_to_bytes(domain),
|
||||
|
|
|
|||
|
|
@ -251,7 +251,6 @@ class DatabaseManagerBroadcasts(DatabaseManager):
|
|||
session.remove()
|
||||
|
||||
def get_broadcasts_per_domain_json(self, domain: str = None) -> dict:
|
||||
|
||||
if domain:
|
||||
self.mark_domain_as_read(domain)
|
||||
|
||||
|
|
@ -300,7 +299,6 @@ class DatabaseManagerBroadcasts(DatabaseManager):
|
|||
session.remove()
|
||||
|
||||
def delete_broadcast_message_or_domain(self, id) -> dict:
|
||||
|
||||
session = self.get_thread_scoped_session()
|
||||
try:
|
||||
msg = session.query(BroadcastMessage).filter_by(id=id).first()
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ class NormTransmission:
|
|||
logger(msg)
|
||||
|
||||
def set_state(self, state):
|
||||
|
||||
self.last_state_change_timestamp = time.time()
|
||||
if self.state == state:
|
||||
self.log(f"{type(self).__name__} state {self.state.name} unchanged.")
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ from freedata_server.modem_frametypes import FRAME_TYPE
|
|||
# Dummy Context with config
|
||||
class DummyCtx:
|
||||
def __init__(self, config_path):
|
||||
|
||||
self.config_manager = CONFIG(self, config_path)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import sys
|
||||
import unittest
|
||||
import unittest.mock
|
||||
import queue
|
||||
|
|
@ -7,13 +6,11 @@ import random
|
|||
import structlog
|
||||
import base64
|
||||
|
||||
sys.path.append("freedata_server")
|
||||
|
||||
from context import AppContext
|
||||
from event_manager import EventManager
|
||||
from state_manager import StateManager
|
||||
import codec2
|
||||
import command_norm
|
||||
from freedata_server.context import AppContext
|
||||
from freedata_server.event_manager import EventManager
|
||||
from freedata_server.state_manager import StateManager
|
||||
from freedata_server import codec2
|
||||
from freedata_server import command_norm
|
||||
|
||||
|
||||
class TestModem:
|
||||
|
|
|
|||
Loading…
Reference in New Issue