Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update export.php to conform to SOTA CSV standard #1748

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

florianprischl
Copy link
Contributor

The SOTA Database CSV standard expects commas (",") to delimit fields; see https://www.sotadata.org.uk/en/upload/activator/csv/info. The export function currently uses semicolons (";"). Although the SOTA Database gracefully accepts semicolon-delimited CSV files, I propose to conform to the expectation and use comma delimiters.

Also fix a typo in "MICROWAVE".

The SOTA Database CSV standard expects commas (",") to delimit fields; see https://www.sotadata.org.uk/en/upload/activator/csv/info. The export function currently uses semicolons (";"). Although the SOTA Database gracefully accepts semicolon-delimited CSV files, I propose to conform to the expectation and use comma delimiters.

Also fix a typo in "MICROWAVE".
@phl0
Copy link
Contributor

phl0 commented Nov 8, 2022

Oh darn. Just realized that you made a separate PR for this... Just added your fixed to my PR #1747. Will revert.

@florianprischl
Copy link
Contributor Author

Thanks a lot! :)

@magicbug magicbug merged commit f81ff06 into magicbug:master Nov 8, 2022
);
foreach ($qsos as $qso) {
$timestamp = strtotime($qso['COL_TIME_ON']);
print "V2;".$qso['station_callsign'].";".$qso['COL_MY_SOTA_REF'].";".date('d/m/y', $timestamp).";".date('Hi', $timestamp).";".$bands[$qso['COL_BAND']].";".$qso['COL_MODE'].";".$qso['COL_CALL'].";".$qso['COL_SOTA_REF'].";".$qso['COL_COMMENT']."\n";
print "V2;".$qso['station_callsign'].",".$qso['COL_MY_SOTA_REF'].",".date('d/m/y', $timestamp).",".date('Hi', $timestamp).",".$bands[$qso['COL_BAND']].",".$qso['COL_MODE'].",".$qso['COL_CALL'].",".$qso['COL_SOTA_REF'].",".$qso['COL_COMMENT']."\n";
Copy link
Contributor

@AndreasK79 AndreasK79 Nov 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed semicolon on V2;

magicbug added a commit that referenced this pull request Nov 8, 2022
This reverts commit f81ff06, reversing
changes made to 19b6a7c.
@phl0
Copy link
Contributor

phl0 commented Nov 8, 2022

This patch was applied to master branch by accident. So it was reverted by @magicbug and talking to him I recreated it against dev and also included @AndreasK79's issue from above.
@florianprischl Please patch against dev branch in the future. :-)

@florianprischl
Copy link
Contributor Author

This patch was applied to master branch by accident. So it was reverted by @magicbug and talking to him I recreated it against dev and also included @AndreasK79's issue from above. @florianprischl Please patch against dev branch in the future. :-)

My apologies! I'm not experienced with Git(Hub), unfortunately. Thank you for clearing it up and merging the fix! :)

@phl0
Copy link
Contributor

phl0 commented Nov 8, 2022

My apologies! I'm not experienced with Git(Hub), unfortunately. Thank you for clearing it up and merging the fix! :)

No worries. Just wanted to explain what happened in case you wondered 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants