Skip to content

Commit

Permalink
off by one error
Browse files Browse the repository at this point in the history
  • Loading branch information
jenpaulhus committed Jun 11, 2024
1 parent 0421094 commit 537400b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmfdb/groups/abstract/web_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def gp_label_to_cc_data(gp):
gp_order = int(gp_ord)
if re.fullmatch(r'\d+',gp_counter):
return gp_order, int(gp_counter)
return gp_order, class_to_int(gp_counter)
return gp_order, class_to_int(gp_counter) + 1


# mimics magma IsInSmallGroupDatabase
Expand Down Expand Up @@ -134,7 +134,7 @@ def in_small_gp_db(order):
def cc_data_to_gp_label(order,counter):
if in_small_gp_db(order):
return str(order) + '.' + str(counter)
return str(order) + '.' + cremona_letter_code(counter)
return str(order) + '.' + cremona_letter_code(counter-1)


@cached_function(key=lambda label,name,pretty,ambient,aut,profiledata,cache: (label,name,pretty,ambient,aut,profiledata))
Expand Down

0 comments on commit 537400b

Please sign in to comment.