Skip to content

Commit

Permalink
Fix some lint (black) problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
SNoiraud committed Mar 15, 2024
1 parent 8f72d90 commit 3df5d8b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
7 changes: 6 additions & 1 deletion gramps/plugins/webreport/basepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3144,7 +3144,12 @@ def heatmap_link(self, name, uplink=False):
"""
url = self.report.build_url_fname_html(name, "heat", uplink)

hyper = Html("a", html_escape(self._(name)), href=url.replace(" ", ""), title=html_escape(self._(name)))
hyper = Html(
"a",
html_escape(self._(name)),
href=url.replace(" ", ""),
title=html_escape(self._(name)),
)

# return hyperlink to its callers
return hyper
Expand Down
3 changes: 1 addition & 2 deletions gramps/plugins/webreport/narrativeweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
MultiSelectSurnames,
HeatmapSurnamesScrolled,
MultiSelectTags,
HeatmapTagsScrolled
HeatmapTagsScrolled,
)

from gramps.plugins.webreport.common import (
Expand Down Expand Up @@ -3176,7 +3176,6 @@ def __add_calendar_options(self, menu):
)
menu.add_option(category_name, "after_year", self.__after_year)


def __add_heatmap_options(self, menu):
"""
Options on the "Heatmap Options" tab.
Expand Down
20 changes: 18 additions & 2 deletions gramps/plugins/webreport/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,25 @@ def __create_family_map(self, person, place_lat_long):
# we are using OpenStreetMap
elif self.mapservice == "OpenStreetMap":
if midy_ is None:
jsc += OSM_MARKERS % ("markers", tracelife, longitude, latitude, 10, 0, 0)
jsc += OSM_MARKERS % (
"markers",
tracelife,
longitude,
latitude,
10,
0,
0,
)
else:
jsc += OSM_MARKERS % ("markers", tracelife, midy_, midx_, zoomlevel, 0, 0)
jsc += OSM_MARKERS % (
"markers",
tracelife,
midy_,
midx_,
zoomlevel,
0,
0,
)
jsc += OPENLAYER
# we are using StamenMap
elif self.mapservice == "StamenMap":
Expand Down

0 comments on commit 3df5d8b

Please sign in to comment.