Skip to content
Snippets Groups Projects
Commit 5fd49ad9 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch 'tns-lab-ids-updated' into 'master'

Tns lab ids updated

See merge request NCER-PD/scheduling-system!252
parents bb9efc2a 47889b33
No related branches found
No related tags found
1 merge request!252Tns lab ids updated
Pipeline #27304 failed
......@@ -297,6 +297,15 @@ class TnsCsvVisitImportReader:
text = 'Laboratoires réunis, 4, rue Tony Bourg, 1278, Gasperich'
if text == 'lab-ketterthill-41':
text = "Ketterthill, 143-147, route d'Arlon, 8009, Strassen"
if text == 'lab-reunis-42':
text = 'Laboratoires réunis, 31, route de Luxembourg, 7240, Bereldange'
if text == 'lab-reunis-43':
text = 'Laboratoires réunis, 11, rue de Peppange, 3270, Bettembourg'
if text == 'lab-reunis-44':
text = 'Laboratoires réunis, 3, Suebelwee, 5685, Dalheim'
if text == 'lab-reunis-45':
text = 'Laboratoires réunis, 1, rue des Glacis, 1628, Luxembourg, Glacis'
locations = Location.objects.filter(name=text)
if len(locations) > 0:
return locations[0]
......
......@@ -301,7 +301,7 @@ class Worker(models.Model):
def __str__(self):
if self.name != '':
if self.first_name == '':
return self.name
return "%s (%s, %s)" % (self.name, self.address, self.city)
else:
return "%s %s %s" % (self.name, self.first_name, self.last_name)
else:
......@@ -310,7 +310,7 @@ class Worker(models.Model):
def __unicode__(self):
if self.name != '':
if self.first_name == '':
return self.name
return "%s (%s, %s)" % (self.name, self.address, self.city)
else:
return "%s %s %s" % (self.name, self.first_name, self.last_name)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment