diff options
author | Johannes Rudolph <johannes.rudolph@gmx.com> | 2018-02-12 23:16:11 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2018-06-28 01:53:40 +0200 |
commit | c70d626e473c8cbdbd87125a256ca221c0c3fa23 (patch) | |
tree | b865181b45bbe4a6beba7e8045ec9d98d18d9b41 /src/web/csv.vala | |
parent | 764c39f4facfe42d926cd952dcf0f7e2768097a8 (diff) | |
download | serial-barcode-scanner-c70d626e473c8cbdbd87125a256ca221c0c3fa23.tar.bz2 |
Add RFID support
Diffstat (limited to 'src/web/csv.vala')
-rw-r--r-- | src/web/csv.vala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/web/csv.vala b/src/web/csv.vala index 299af8d..5d4daba 100644 --- a/src/web/csv.vala +++ b/src/web/csv.vala @@ -1,4 +1,5 @@ /* Copyright 2012, Sebastian Reichel <sre@ring0.de> + * Copyright 2017-2018, Johannes Rudolph <johannes.rudolph@gmx.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -66,6 +67,15 @@ public class CSVMemberFile { m.pgp = csv_value(linedata[9]); m.hidden = int.parse(csv_value(linedata[10])) != 0; m.disabled = int.parse(csv_value(linedata[11])) != 0; + string[] rfid = {}; + if(csv_value(linedata[12]) != "") + rfid += csv_value(linedata[12]); + if(csv_value(linedata[13]) != "") + rfid += csv_value(linedata[13]); + if(csv_value(linedata[14]) != "") + rfid += csv_value(linedata[14]); + m.rfid = rfid; + m.soundTheme = ""; if(csv_value(linedata[0]) != "EXTERNEMITGLIEDSNUMMER") members += m; |