Skip to content

Commit

Permalink
Bugfix : Updated the logging part. In case of QSO match, some bad
Browse files Browse the repository at this point in the history
logging was done
  • Loading branch information
ciorceri committed May 17, 2024
1 parent aa33208 commit 3441588
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions logXchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def print_human_friendly_output(lfmodule, output, verbose=False):
continue
for err in _details['qso_errors']:
print(' - {}'.format(err))
# for vld in _details['qso_valid']:
# print(' - {}'.format(vld))
for vld in _details['qso_valid']:
print(' - {}'.format(vld))
print('--------')


Expand Down Expand Up @@ -253,7 +253,7 @@ def main():
if qso.cc_confirmed is False:
_cc_errors.append('{} : {}'.format(qso.qso_line, qso.cc_error))
else:
_cc_valid.append('{} : {} : {}'.format(qso.qso_line, qso.points, qso.cc_confirmed))
_cc_valid.append('{} , points {} , confirmed {}'.format(qso.qso_line, qso.points, qso.cc_confirmed))
op_output[lfmodule.INFO_BANDS][_log.band]['qso_errors'] = _cc_errors
op_output[lfmodule.INFO_BANDS][_log.band]['qso_valid'] = _cc_valid

Expand Down
8 changes: 4 additions & 4 deletions parse_cabrillo.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ def __init__(self, qso_cabrillo_lib=None, qso_line_number=None, rules=None):

self.errors = []
self.cc_confirmed = None # possible values: True, False
self.cc_error = [] # here we store errors from cross-check
self.points = None # if qso is confirmed we store here the calculated points (multiplier included)
self.cc_error = [] # here we store errors from cross-check
self.points = None # if qso is confirmed we store here the calculated points (multiplier included)

self.qso_fields = {'freq': None,
'mode': None,
Expand Down Expand Up @@ -451,8 +451,8 @@ def crosscheck_logs(operator_instances, rules, band_nr):
operator_instances[callsign1].points_multipliers += 1
qso1.cc_error = []
else:
qso1.cc_confirmed = False
qso1.cc_error = 'No qso found on {} log'.format(callsign2)
if qso1.cc_confirmed == False:
qso1.cc_error = 'No qso found on {} log'.format(callsign2)


def compare_qso(log1, qso1, log2, qso2):
Expand Down

0 comments on commit 3441588

Please sign in to comment.