From a501b59fbafc4160d516ffc6150b14954184ab9c Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Mon, 15 Apr 2024 01:54:59 +0300 Subject: [PATCH] data_models: change connections' order --- rendercv/data_models.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/rendercv/data_models.py b/rendercv/data_models.py index 4d514a5..6a4377a 100644 --- a/rendercv/data_models.py +++ b/rendercv/data_models.py @@ -901,6 +901,16 @@ class CurriculumVitae(RenderCVBaseModel): """Return all the connections of the person.""" connections: list[dict[str, str]] = [] + if self.location is not None: + connections.append( + { + "latex_icon": "\\faMapMarker*", + "url": None, + "clean_url": None, + "placeholder": self.location, + } + ) + if self.email is not None: connections.append( { @@ -910,6 +920,7 @@ class CurriculumVitae(RenderCVBaseModel): "placeholder": self.email, } ) + if self.phone is not None: phone_placeholder = self.phone.replace("tel:", "").replace("-", " ") connections.append( @@ -931,15 +942,6 @@ class CurriculumVitae(RenderCVBaseModel): "placeholder": website_placeholder, } ) - if self.location is not None: - connections.append( - { - "latex_icon": "\\faMapMarker*", - "url": None, - "clean_url": None, - "placeholder": self.location, - } - ) if self.social_networks is not None: icon_dictionary = {