]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/web/fireinfo.py
Migrate to libloc
[ipfire.org.git] / src / web / fireinfo.py
index 4fa5b968f2a88f05eebb714699b3ce7160cc2d05..2662ed4667b8a5ef3b642111ef37d551e9c05410 100644 (file)
@@ -136,15 +136,11 @@ class ProfileSendHandler(BaseHandler):
                profile_blob = self.get_profile_blob()
                #self.check_profile_blob(profile_blob)
 
-               # Get location
-               location = self.get_remote_location()
-               if location:
-                       location = location.country
-
                # Handle the profile.
                with self.db.transaction():
                        try:
-                               self.fireinfo.handle_profile(public_id, profile_blob, location=location)
+                               self.fireinfo.handle_profile(public_id, profile_blob,
+                                       country_code=self.current_country_code)
 
                        except fireinfo.ProfileParserError as e:
                                raise tornado.web.HTTPError(400, "Could not parse profile: %s" % e)