Commit 83b4916f authored by christoffer.stoll's avatar christoffer.stoll
Browse files

if logic error

parent bb9f630f
......@@ -53,35 +53,35 @@ OBS_ENDPOINT = "/imports/observations"
try:
args = get_args()
if not args.ra:
if args.ra:
print("Importing responsible authorities to Raven")
import_to_raven(args.url + RA_ENDPOINT, args.ra)
if not args.net:
if args.net:
print("Importing networks to Raven")
import_to_raven(args.url + NET_ENDPOINT, args.net)
if not args.sta:
if args.sta:
print("Importing stations to Raven")
import_to_raven(args.url + STA_ENDPOINT, args.sta)
if not args.spo:
if args.spo:
print("Importing sampling points to Raven")
import_to_raven(args.url + SPO_ENDPOINT, args.spo)
if not args.spp:
if args.spp:
print("Importing processes to Raven")
import_to_raven(args.url + SPP_ENDPOINT, args.spp)
if not args.sam:
if args.sam:
print("Importing samples to Raven")
import_to_raven(args.url + SAM_ENDPOINT, args.sam)
if not args.oc:
if args.oc:
print("Importing observing capabilities to Raven")
import_to_raven(args.url + OC_ENDPOINT, args.oc)
if not args.obs:
if args.obs:
print("Importing observations to Raven")
import_to_raven(args.url + OBS_ENDPOINT, args.obs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment