This set also appears in the following Sets:

3-in-1 Collection
5003836-1
(0 parts)
Creator > Creator 3-in-1 2014
x1

31014-1

Name Power Digger
Released 2014
(Dec. 1, 2013 to Dec. 31, 2015)
Inventory 64 parts
Theme Creator > Creator 3-in-1

Buy this LEGO Set

Purchasing from the above links may result in a commission being paid to Rebrickable, but at no extra cost to you.
Disney Castle

External Sites

This Set is known differently at other sites:

BrickLink 31014-1
BrickOwl 208801
Brickset 31014-1
40,600
Dec. 6, 2013, 9:22 p.m. by Nathan
Jan. 20, 2026, 12:19 a.m. by Rebrickable
to your account to add or reply to comments.
  • Avatar image for Rebrickable user Sniffer_The_Builder
    9 months, 2 weeks ago
    Rebuilt this set recently. It’s insane how a so old set is still good.
    • Avatar image for Rebrickable user Friendote
      Friendote
      Level 19 MOC Designer
      5 months, 2 weeks ago
      I totally forgot I had this set. It's been years since I first got it.
  • Avatar image for Rebrickable user A_Dilophosaurus
    3 years, 8 months ago
    This is a great set! Sadly I sold mine but I am considering re buying it to build all of some amazing all builds
    • Avatar image for Rebrickable user Dujk
      Dujk
      Level 25 MOC Designer PRO
      3 years, 8 months ago
      I contributed over 150 alt builds for this set (so far, have got a few more ideas...)
  • Avatar image for Rebrickable user brickbossofficial
    4 years, 9 months ago
    Old, but so many alternative builds! Very cool set. I made a time lapse build about it, enjoy 😎

    • Avatar image for Rebrickable user Dujk
      Dujk
      Level 25 MOC Designer PRO
      3 years, 8 months ago
      I've been adding more alt builds, most are superior to previous designs.
  • Avatar image for Rebrickable user Vixerix
    11 years, 5 months ago
    All the parts are in one bag. You can B.I.B. all 3 designs, and most of the alternate builds.

Alternate Builds (MOCs)

These MOCs can be built using only the parts in 31014-1 Power Digger.

Partial Alternate Builds (MOCs)

These MOCs can be built using only the parts in this set as well as one or more other sets.

Modifications (MOCs)

These MOCs are modifications of 31014-1 Power Digger, they typically use most of the parts plus some extra ones.

B-Models

These are official B-Models of 31014-1 Power Digger.

Skid Loader
31014-1-b1
(57 parts)
Creator > Creator 3-in-1 2014
Dump Truck
31014-1-b2
(52 parts)
Creator > Creator 3-in-1 2014
Already have some of the parts? Use the Build this Set page to only show the parts you are missing.
Create an account to change the default filters used.

Waiting for Inventory to load

Create an account to change the default filters used.
DJDT

Time

Resource usage

Resource Value
User CPU time 3041.450 msec
System CPU time 39.434 msec
Total CPU time 3080.884 msec
Elapsed time 3425.409 msec
Context switches 2401 voluntary, 57 involuntary

Browser timing

Timing attribute Timeline Milliseconds since navigation start (+length)

SQL queries from 1 connection

  • default 363.35 ms (1156 queries including 1125 similar and 342 duplicates )
Query Timeline Time (ms) Action
SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."set_num" = '31014-1'
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."set_num" = '31014-1' LIMIT 21
2 similar queries. Duplicated 2 times.
0.32

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(114)
  baseset = get_or_none(BaseSet.all_objects, set_num=set_num)

/home/nathan/rb/site/./rb/utils.py in get_or_none(734)
  return manager.get(**kwargs)

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."set_num" = '31014-1'
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."set_num" = '31014-1' LIMIT 21
2 similar queries. Duplicated 2 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(339)
  baseset = BaseSet.all_objects.get(set_num=set_num)

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_set"."baseset_ptr_id",
       "lego_set"."start_date",
       "lego_set"."end_date"
  FROM
"lego_set"
 INNER JOIN
"lego_baseset"
    ON
("lego_set"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_set"."baseset_ptr_id" = 3100
 LIMIT
21
SELECT ••• FROM "lego_set" INNER JOIN "lego_baseset" ON ("lego_set"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_set"."baseset_ptr_id" = 3100 LIMIT 21
4 similar queries. Duplicated 2 times.
0.18

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(346)
  set = baseset.get_child_instance()

/home/nathan/rb/site/./lego/models/sets.py in get_child_instance(1717)
  return self.set

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 6328
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 6328 LIMIT 21
13 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(371)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

SELECT "lego_changelog"."id",
       "lego_changelog"."timestamp",
       "lego_changelog"."user_id",
       "lego_changelog"."model",
       "lego_changelog"."instance_id",
       "lego_changelog"."set_num",
       "lego_changelog"."part_num",
       "lego_changelog"."old_value",
       "lego_changelog"."new_value"
  FROM
"lego_changelog"
 WHERE
("lego_changelog"."set_num" = '31014-1' AND NOT ("lego_changelog"."model" = 'PendingMoc'))
 ORDER BY
"lego_changelog"."timestamp" DESC
SELECT ••• FROM "lego_changelog" WHERE ("lego_changelog"."set_num" = '31014-1' AND NOT ("lego_changelog"."model" = 'PendingMoc')) ORDER BY "lego_changelog"."timestamp" DESC
11.40

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(383)
  changes = set.get_change_summary()

/home/nathan/rb/site/./lego/models/sets.py in get_change_summary(1169)
  changes = ChangeLog.get_changes(set_num=self.set_num)

/home/nathan/rb/site/./lego/models/changes.py in get_changes(276)
  if len(changes) > 0:

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 3100
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 3100 LIMIT 21
11 similar queries.
0.12

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(386)
  set.stats.inc_hits()

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

UPDATE "lego_setstatstotal"
   SET
"hits" = 40612,
       "builds" = 1110,
       "likes" = 2,
       "bi_downloads" = 0,
       "featured_hits" = 0,
       "user_hits" = 0
 WHERE
"lego_setstatstotal"."set_id" = 3100
UPDATE "lego_setstatstotal" SET "hits" = 40612, "builds" = 1110, "likes" = 2, "bi_downloads" = 0, "featured_hits" = 0, "user_hits" = 0 WHERE "lego_setstatstotal"."set_id" = 3100
0.13

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(386)
  set.stats.inc_hits()

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2713)
  self.save()

SELECT "lego_setstatshistory"."id",
       "lego_setstatshistory"."set_id",
       "lego_setstatshistory"."day",
       "lego_setstatshistory"."hits",
       "lego_setstatshistory"."builds",
       "lego_setstatshistory"."likes",
       "lego_setstatshistory"."bi_downloads",
       "lego_setstatshistory"."featured_hits",
       "lego_setstatshistory"."user_hits"
  FROM
"lego_setstatshistory"
 WHERE
("lego_setstatshistory"."day" = '2026-11-16'::date AND "lego_setstatshistory"."set_id" = 3100)
 LIMIT
21
SELECT ••• FROM "lego_setstatshistory" WHERE ("lego_setstatshistory"."day" = '2026-11-16'::date AND "lego_setstatshistory"."set_id" = 3100) LIMIT 21
0.31

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(386)
  set.stats.inc_hits()

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2714)
  SetStatsHistory.inc_hits(self.set)

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2663)
  self, created = cls.objects.get_or_create(set=set, day=timezone.now())

SAVEPOINT "s125644449351488_x23"SAVEPOINT "s125644449351488_x23"
0.04

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(386)
  set.stats.inc_hits()

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2714)
  SetStatsHistory.inc_hits(self.set)

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2663)
  self, created = cls.objects.get_or_create(set=set, day=timezone.now())

INSERT INTO "lego_setstatshistory" ("set_id", "day", "hits", "builds", "likes", "bi_downloads", "featured_hits", "user_hits")
VALUES
(3100, '2026-11-16'::date, 0, 0, 0, 0, 0, 0) RETURNING "lego_setstatshistory"."id"
INSERT INTO "lego_setstatshistory" ("set_id", "day", "hits", "builds", "likes", "bi_downloads", "featured_hits", "user_hits") VALUES (3100, '2026-11-16'::date, 0, 0, 0, 0, 0, 0) RETURNING "lego_setstatshistory"."id"
0.30

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(386)
  set.stats.inc_hits()

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2714)
  SetStatsHistory.inc_hits(self.set)

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2663)
  self, created = cls.objects.get_or_create(set=set, day=timezone.now())

RELEASE SAVEPOINT "s125644449351488_x23"RELEASE SAVEPOINT "s125644449351488_x23"
0.04

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(386)
  set.stats.inc_hits()

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2714)
  SetStatsHistory.inc_hits(self.set)

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2663)
  self, created = cls.objects.get_or_create(set=set, day=timezone.now())

UPDATE "lego_setstatshistory"
   SET
"set_id" = 3100,
       "day" = '2026-11-16'::date,
       "hits" = 1,
       "builds" = 0,
       "likes" = 0,
       "bi_downloads" = 0,
       "featured_hits" = 0,
       "user_hits" = 0
 WHERE
"lego_setstatshistory"."id" = 169444481
UPDATE "lego_setstatshistory" SET "set_id" = 3100, "day" = '2026-11-16'::date, "hits" = 1, "builds" = 0, "likes" = 0, "bi_downloads" = 0, "featured_hits" = 0, "user_hits" = 0 WHERE "lego_setstatshistory"."id" = 169444481
0.11

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(386)
  set.stats.inc_hits()

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2714)
  SetStatsHistory.inc_hits(self.set)

/home/nathan/rb/site/./lego/models/sets.py in inc_hits(2665)
  self.save()

SELECT "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr"
  FROM
"lego_theme"
 WHERE
"lego_theme"."id" = 672
 LIMIT
21
SELECT ••• FROM "lego_theme" WHERE "lego_theme"."id" = 672 LIMIT 21
2 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(421)
  context['similar_sets'] = set.get_similar_sets(10)

/home/nathan/rb/site/./cache/utils.py in cache_wrapper(98)
  result = method(instance, *args, **kwargs)

/home/nathan/rb/site/./lego/models/sets.py in get_similar_sets(1401)
  """, {'theme': self.theme.name,

SELECT DISTINCT "taggit_tag"."id",
       "taggit_tag"."name",
       "taggit_tag"."slug",
       COUNT("lego_set"."baseset_ptr_id") AS "count"
  FROM
"taggit_tag"
 INNER JOIN
"taggit_taggeditem"
    ON
("taggit_tag"."id" = "taggit_taggeditem"."tag_id")
 INNER JOIN
"django_content_type"
    ON
("taggit_taggeditem"."content_type_id" = "django_content_type"."id")
  LEFT OUTER JOIN
"lego_baseset"
    ON
("taggit_taggeditem"."object_id" = "lego_baseset"."id" AND ("taggit_taggeditem"."content_type_id" IN (18,63,17,22,20,31,50,180)))
  LEFT OUTER JOIN
"lego_set"
    ON
("lego_baseset"."id" = "lego_set"."baseset_ptr_id")
 INNER JOIN
"taggit_taggeditem" T6
    ON
("taggit_tag"."id" = T6."tag_id")
 INNER JOIN
"lego_baseset" T7
    ON
(T6."object_id" = T7."id" AND (T6."content_type_id" IN (18,63,17,22,20,31,50,180)))
 INNER JOIN
"lego_set" T8
    ON
(T7."id" = T8."baseset_ptr_id")
 WHERE
("django_content_type"."app_label" = 'lego' AND "django_content_type"."model" = 'set' AND T8."baseset_ptr_id" = 3100)
 GROUP BY
"taggit_tag"."id"
SELECT ••• FROM "taggit_tag" INNER JOIN "taggit_taggeditem" ON ("taggit_tag"."id" = "taggit_taggeditem"."tag_id") INNER JOIN "django_content_type" ON ("taggit_taggeditem"."content_type_id" = "django_content_type"."id") LEFT OUTER JOIN "lego_baseset" ON ("taggit_taggeditem"."object_id" = "lego_baseset"."id" AND ("taggit_taggeditem"."content_type_id" IN (18,63,17,22,20,31,50,180))) LEFT OUTER JOIN "lego_set" ON ("lego_baseset"."id" = "lego_set"."baseset_ptr_id") INNER JOIN "taggit_taggeditem" T6 ON ("taggit_tag"."id" = T6."tag_id") INNER JOIN "lego_baseset" T7 ON (T6."object_id" = T7."id" AND (T6."content_type_id" IN (18,63,17,22,20,31,50,180))) INNER JOIN "lego_set" T8 ON (T7."id" = T8."baseset_ptr_id") WHERE ("django_content_type"."app_label" = 'lego' AND "django_content_type"."model" = 'set' AND T8."baseset_ptr_id" = 3100) GROUP BY "taggit_tag"."id"
44.69

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(421)
  context['similar_sets'] = set.get_similar_sets(10)

/home/nathan/rb/site/./cache/utils.py in cache_wrapper(98)
  result = method(instance, *args, **kwargs)

/home/nathan/rb/site/./lego/models/sets.py in get_similar_sets(1403)
  'tag_ids': ' '.join(str(t.id) for t in self.get_tags() if t.id != 4),  # 4 == moc


   set
pg_trgm.similarity_threshold = 0.2; SELECT "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."num_parts",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."set_type",
       "lego_baseset"."primary_photo_id",
       "lego_setstatstotal"."likes",
       lego_theme.name as theme_name,
       lego_theme.parent_id as theme_parent,
       lego_baseset.id,
       (SIMILARITY ("lego_baseset"."name", 'Power Digger')*5 + similarity(coalesce(( select string_agg(tag_id::text, ' ') as tags from taggit_taggeditem where content_type_id in (17,18,22,63,31,180) and object_id=lego_baseset.id ),''), '23 51 54 225 1125 1493 3392 4502')*5 + similarity("lego_theme"."name", 'Creator 3-in-1')/3 + similarity(coalesce("lego_theme"."parent_id",0)::text, '22')/2 ) * least(likes/hits::float, 0.002) as similarity
  FROM
lego_baseset
 INNER JOIN
"lego_setstatstotal"
    ON
("lego_baseset"."id" = "lego_setstatstotal"."set_id")
 INNER JOIN
"lego_theme"
    ON
("lego_baseset"."theme_id" = "lego_theme"."id")
 WHERE
"lego_setstatstotal"."likes" > 50
   AND
"lego_setstatstotal"."hits" > 0
   AND
"lego_baseset"."is_active" = true
   AND
((lego_baseset.name || ' ' || lego_baseset.theme_id::text) % 'Power Digger 672')
 ORDER BY
"similarity" DESC, "lego_setstatstotal"."likes" DESC, "lego_baseset"."num_parts" DESC
 LIMIT
10
set pg_trgm.similarity_threshold = 0.2; SELECT "lego_baseset"."set_num", "lego_baseset"."name", "lego_baseset"."year", "lego_baseset"."theme_id", "lego_baseset"."num_parts", "lego_baseset"."is_active", "lego_baseset"."is_accessory", "lego_baseset"."added_dt", "lego_baseset"."added_by_id", "lego_baseset"."last_modified_dt", "lego_baseset"."last_modified_by_id", "lego_baseset"."set_type", "lego_baseset"."primary_photo_id", "lego_setstatstotal"."likes", lego_theme.name as theme_name, lego_theme.parent_id as theme_parent, lego_baseset.id, (SIMILARITY ("lego_baseset"."name", 'Power Digger')*5 + similarity(coalesce(( select string_agg(tag_id::text, ' ') as tags from taggit_taggeditem where content_type_id in (17,18,22,63,31,180) and object_id=lego_baseset.id ),''), '23 51 54 225 1125 1493 3392 4502')*5 + similarity("lego_theme"."name", 'Creator 3-in-1')/3 + similarity(coalesce("lego_theme"."parent_id",0)::text, '22')/2 ) * least(likes/hits::float, 0.002) as similarity FROM lego_baseset INNER JOIN "lego_setstatstotal" ON ("lego_baseset"."id" = "lego_setstatstotal"."set_id") INNER JOIN "lego_theme" ON ("lego_baseset"."theme_id" = "lego_theme"."id") WHERE "lego_setstatstotal"."likes" > 50 AND "lego_setstatstotal"."hits" > 0 AND "lego_baseset"."is_active" = true AND ((lego_baseset.name || ' ' || lego_baseset.theme_id::text) % 'Power Digger 672') ORDER BY "similarity" DESC, "lego_setstatstotal"."likes" DESC, "lego_baseset"."num_parts" DESC LIMIT 10
49.98

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(421)
  context['similar_sets'] = set.get_similar_sets(10)

/home/nathan/rb/site/./cache/utils.py in cache_wrapper(98)
  result = method(instance, *args, **kwargs)

/home/nathan/rb/site/./lego/models/sets.py in get_similar_sets(1412)
  qs = list(qs)

SELECT "lego_storesetitem"."id",
       "lego_storesetitem"."store_id",
       "lego_storesetitem"."is_used",
       "lego_storesetitem"."cost",
       "lego_storesetitem"."cost_usd",
       "lego_storesetitem"."sale_cost",
       "lego_storesetitem"."sku",
       "lego_storesetitem"."item_url",
       "lego_storesetitem"."quantity",
       "lego_storesetitem"."timestamp",
       "lego_storesetitem"."set_id",
       "lego_store"."id",
       "lego_store"."name",
       "lego_store"."is_active",
       "lego_store"."store_url",
       "lego_store"."add_item_url",
       "lego_store"."feed_url",
       "lego_store"."tag_line",
       "lego_store"."currency_code",
       "lego_store"."country_code",
       "lego_store"."bricklink_sellername",
       "lego_store"."ships_to"
  FROM
"lego_storesetitem"
 INNER JOIN
"lego_store"
    ON
("lego_storesetitem"."store_id" = "lego_store"."id")
 WHERE
(NOT "lego_storesetitem"."is_used" AND "lego_storesetitem"."set_id" = 3100 AND "lego_storesetitem"."store_id" IN (SELECT U0."id" FROM "lego_store" U0 WHERE (U0."is_active" AND UPPER(U0."store_url"::text) LIKE UPPER('%linksynergy.com%'))))
SELECT ••• FROM "lego_storesetitem" INNER JOIN "lego_store" ON ("lego_storesetitem"."store_id" = "lego_store"."id") WHERE (NOT "lego_storesetitem"."is_used" AND "lego_storesetitem"."set_id" = 3100 AND "lego_storesetitem"."store_id" IN (SELECT ••• FROM "lego_store" U0 WHERE (U0."is_active" AND UPPER(U0."store_url"::text) LIKE UPPER('%linksynergy.com%'))))
3 similar queries.
1.30

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(423)
  context['merchant_store_costs'] = get_merchant_stores_cost(request.user, set)

/home/nathan/rb/site/./lego/buy/sets.py in get_merchant_stores_cost(431)
  for item in items:

SELECT "lego_storesetitem"."id",
       "lego_storesetitem"."store_id",
       "lego_storesetitem"."is_used",
       "lego_storesetitem"."cost",
       "lego_storesetitem"."cost_usd",
       "lego_storesetitem"."sale_cost",
       "lego_storesetitem"."sku",
       "lego_storesetitem"."item_url",
       "lego_storesetitem"."quantity",
       "lego_storesetitem"."timestamp",
       "lego_storesetitem"."set_id",
       "lego_store"."id",
       "lego_store"."name",
       "lego_store"."is_active",
       "lego_store"."store_url",
       "lego_store"."add_item_url",
       "lego_store"."feed_url",
       "lego_store"."tag_line",
       "lego_store"."currency_code",
       "lego_store"."country_code",
       "lego_store"."bricklink_sellername",
       "lego_store"."ships_to"
  FROM
"lego_storesetitem"
 INNER JOIN
"lego_store"
    ON
("lego_storesetitem"."store_id" = "lego_store"."id")
 WHERE
(NOT "lego_storesetitem"."is_used" AND "lego_storesetitem"."set_id" = 3100 AND "lego_storesetitem"."store_id" IN (SELECT U0."id" FROM "lego_store" U0 WHERE (U0."is_active" AND UPPER(U0."store_url"::text) LIKE UPPER('%brickowl.com%'))))
SELECT ••• FROM "lego_storesetitem" INNER JOIN "lego_store" ON ("lego_storesetitem"."store_id" = "lego_store"."id") WHERE (NOT "lego_storesetitem"."is_used" AND "lego_storesetitem"."set_id" = 3100 AND "lego_storesetitem"."store_id" IN (SELECT ••• FROM "lego_store" U0 WHERE (U0."is_active" AND UPPER(U0."store_url"::text) LIKE UPPER('%brickowl.com%'))))
3 similar queries.
0.31

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(423)
  context['merchant_store_costs'] = get_merchant_stores_cost(request.user, set)

/home/nathan/rb/site/./lego/buy/sets.py in get_merchant_stores_cost(431)
  for item in items:

SELECT "countries_plus_country"."iso",
       "countries_plus_country"."iso3",
       "countries_plus_country"."iso_numeric",
       "countries_plus_country"."fips",
       "countries_plus_country"."name",
       "countries_plus_country"."capital",
       "countries_plus_country"."area",
       "countries_plus_country"."population",
       "countries_plus_country"."continent",
       "countries_plus_country"."tld",
       "countries_plus_country"."currency_code",
       "countries_plus_country"."currency_symbol",
       "countries_plus_country"."currency_name",
       "countries_plus_country"."phone",
       "countries_plus_country"."postal_code_format",
       "countries_plus_country"."postal_code_regex",
       "countries_plus_country"."languages",
       "countries_plus_country"."geonameid",
       "countries_plus_country"."neighbours",
       "countries_plus_country"."equivalent_fips_code"
  FROM
"countries_plus_country"
 WHERE
"countries_plus_country"."iso" = 'US'
 LIMIT
21
SELECT ••• FROM "countries_plus_country" WHERE "countries_plus_country"."iso" = 'US' LIMIT 21
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(423)
  context['merchant_store_costs'] = get_merchant_stores_cost(request.user, set)

/home/nathan/rb/site/./lego/buy/sets.py in get_merchant_stores_cost(443)
  item.cost = user.geo.format_user_currency(item.cost or 0, item.store.currency_code)

/home/nathan/rb/site/./geo/geo.py in format_user_currency(288)
  price = self.to_user_currency(price, from_currency_code)

/home/nathan/rb/site/./geo/geo.py in to_user_currency(264)
  user_currency = self.get_user_currency()

/home/nathan/rb/site/./geo/geo.py in get_user_currency(253)
  country = Country.objects.get(iso=country_code)

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 3100
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 3100 LIMIT 21
12 similar queries. Duplicated 2 times.
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(423)
  context['merchant_store_costs'] = get_merchant_stores_cost(request.user, set)

/home/nathan/rb/site/./lego/buy/sets.py in get_merchant_stores_cost(447)
  item.item_url = item.get_store_item_url()

/home/nathan/rb/site/./lego/models/stores.py in get_store_item_url(402)
  return self.store.store_url.split('?')[0] + '/search/store?utm_source=rebrickable&query=' + self.set.set_num

SELECT "lego_storesetitem"."id",
       "lego_storesetitem"."store_id",
       "lego_storesetitem"."is_used",
       "lego_storesetitem"."cost",
       "lego_storesetitem"."cost_usd",
       "lego_storesetitem"."sale_cost",
       "lego_storesetitem"."sku",
       "lego_storesetitem"."item_url",
       "lego_storesetitem"."quantity",
       "lego_storesetitem"."timestamp",
       "lego_storesetitem"."set_id",
       "lego_store"."id",
       "lego_store"."name",
       "lego_store"."is_active",
       "lego_store"."store_url",
       "lego_store"."add_item_url",
       "lego_store"."feed_url",
       "lego_store"."tag_line",
       "lego_store"."currency_code",
       "lego_store"."country_code",
       "lego_store"."bricklink_sellername",
       "lego_store"."ships_to"
  FROM
"lego_storesetitem"
 INNER JOIN
"lego_store"
    ON
("lego_storesetitem"."store_id" = "lego_store"."id")
 WHERE
(NOT "lego_storesetitem"."is_used" AND "lego_storesetitem"."set_id" = 3100 AND "lego_storesetitem"."store_id" IN (SELECT U0."id" FROM "lego_store" U0 WHERE (U0."is_active" AND UPPER(U0."store_url"::text) LIKE UPPER('%bricklink.com%'))))
SELECT ••• FROM "lego_storesetitem" INNER JOIN "lego_store" ON ("lego_storesetitem"."store_id" = "lego_store"."id") WHERE (NOT "lego_storesetitem"."is_used" AND "lego_storesetitem"."set_id" = 3100 AND "lego_storesetitem"."store_id" IN (SELECT ••• FROM "lego_store" U0 WHERE (U0."is_active" AND UPPER(U0."store_url"::text) LIKE UPPER('%bricklink.com%'))))
3 similar queries.
0.30

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(423)
  context['merchant_store_costs'] = get_merchant_stores_cost(request.user, set)

/home/nathan/rb/site/./lego/buy/sets.py in get_merchant_stores_cost(431)
  for item in items:

SELECT "lego_store"."id",
       "lego_store"."name",
       "lego_store"."is_active",
       "lego_store"."store_url",
       "lego_store"."add_item_url",
       "lego_store"."feed_url",
       "lego_store"."tag_line",
       "lego_store"."currency_code",
       "lego_store"."country_code",
       "lego_store"."bricklink_sellername",
       "lego_store"."ships_to"
  FROM
"lego_store"
 WHERE
("lego_store"."is_active" AND "lego_store"."country_code" = 'US' AND UPPER("lego_store"."store_url"::text) LIKE UPPER('%linksynergy.com%'))
 LIMIT
21
SELECT ••• FROM "lego_store" WHERE ("lego_store"."is_active" AND "lego_store"."country_code" = 'US' AND UPPER("lego_store"."store_url"::text) LIKE UPPER('%linksynergy.com%')) LIMIT 21
2 similar queries. Duplicated 2 times.
11.00

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(423)
  context['merchant_store_costs'] = get_merchant_stores_cost(request.user, set)

/home/nathan/rb/site/./lego/buy/sets.py in get_merchant_stores_cost(455)
  res['img_link'] = MerchantStore.get_lego_link_for_user(user, set)

/home/nathan/rb/site/./lego/models/stores.py in get_lego_link_for_user(275)
  store = get_or_none(Store.objects, store_url__icontains='linksynergy.com', country_code=store_country)

/home/nathan/rb/site/./rb/utils.py in get_or_none(734)
  return manager.get(**kwargs)

SELECT "lego_storesetitem"."id",
       "lego_storesetitem"."store_id",
       "lego_storesetitem"."is_used",
       "lego_storesetitem"."cost",
       "lego_storesetitem"."cost_usd",
       "lego_storesetitem"."sale_cost",
       "lego_storesetitem"."sku",
       "lego_storesetitem"."item_url",
       "lego_storesetitem"."quantity",
       "lego_storesetitem"."timestamp",
       "lego_storesetitem"."set_id",
       "lego_store"."id",
       "lego_store"."name",
       "lego_store"."is_active",
       "lego_store"."store_url",
       "lego_store"."add_item_url",
       "lego_store"."feed_url",
       "lego_store"."tag_line",
       "lego_store"."currency_code",
       "lego_store"."country_code",
       "lego_store"."bricklink_sellername",
       "lego_store"."ships_to"
  FROM
"lego_storesetitem"
 INNER JOIN
"lego_store"
    ON
("lego_storesetitem"."store_id" = "lego_store"."id")
 WHERE
(NOT "lego_storesetitem"."is_used" AND "lego_storesetitem"."set_id" = 3100 AND "lego_storesetitem"."store_id" = 17)
 ORDER BY
"lego_storesetitem"."id" ASC
 LIMIT
1
SELECT ••• FROM "lego_storesetitem" INNER JOIN "lego_store" ON ("lego_storesetitem"."store_id" = "lego_store"."id") WHERE (NOT "lego_storesetitem"."is_used" AND "lego_storesetitem"."set_id" = 3100 AND "lego_storesetitem"."store_id" = 17) ORDER BY "lego_storesetitem"."id" ASC LIMIT 1
2 similar queries. Duplicated 2 times.
0.16

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(423)
  context['merchant_store_costs'] = get_merchant_stores_cost(request.user, set)

/home/nathan/rb/site/./lego/buy/sets.py in get_merchant_stores_cost(455)
  res['img_link'] = MerchantStore.get_lego_link_for_user(user, set)

/home/nathan/rb/site/./lego/models/stores.py in get_lego_link_for_user(279)
  item = StoreSetItem.objects.select_related('store').filter(store=store, set_id=set.id, is_used=False).first()

SELECT "lego_store"."id",
       "lego_store"."name",
       "lego_store"."is_active",
       "lego_store"."store_url",
       "lego_store"."add_item_url",
       "lego_store"."feed_url",
       "lego_store"."tag_line",
       "lego_store"."currency_code",
       "lego_store"."country_code",
       "lego_store"."bricklink_sellername",
       "lego_store"."ships_to"
  FROM
"lego_store"
 WHERE
("lego_store"."is_active" AND "lego_store"."country_code" = 'US' AND UPPER("lego_store"."store_url"::text) LIKE UPPER('%linksynergy.com%'))
 LIMIT
21
SELECT ••• FROM "lego_store" WHERE ("lego_store"."is_active" AND "lego_store"."country_code" = 'US' AND UPPER("lego_store"."store_url"::text) LIKE UPPER('%linksynergy.com%')) LIMIT 21
2 similar queries. Duplicated 2 times.
8.64

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(423)
  context['merchant_store_costs'] = get_merchant_stores_cost(request.user, set)

/home/nathan/rb/site/./lego/buy/sets.py in get_merchant_stores_cost(455)
  res['img_link'] = MerchantStore.get_lego_link_for_user(user, set)

/home/nathan/rb/site/./lego/models/stores.py in get_lego_link_for_user(275)
  store = get_or_none(Store.objects, store_url__icontains='linksynergy.com', country_code=store_country)

/home/nathan/rb/site/./rb/utils.py in get_or_none(734)
  return manager.get(**kwargs)

SELECT "lego_storesetitem"."id",
       "lego_storesetitem"."store_id",
       "lego_storesetitem"."is_used",
       "lego_storesetitem"."cost",
       "lego_storesetitem"."cost_usd",
       "lego_storesetitem"."sale_cost",
       "lego_storesetitem"."sku",
       "lego_storesetitem"."item_url",
       "lego_storesetitem"."quantity",
       "lego_storesetitem"."timestamp",
       "lego_storesetitem"."set_id",
       "lego_store"."id",
       "lego_store"."name",
       "lego_store"."is_active",
       "lego_store"."store_url",
       "lego_store"."add_item_url",
       "lego_store"."feed_url",
       "lego_store"."tag_line",
       "lego_store"."currency_code",
       "lego_store"."country_code",
       "lego_store"."bricklink_sellername",
       "lego_store"."ships_to"
  FROM
"lego_storesetitem"
 INNER JOIN
"lego_store"
    ON
("lego_storesetitem"."store_id" = "lego_store"."id")
 WHERE
(NOT "lego_storesetitem"."is_used" AND "lego_storesetitem"."set_id" = 3100 AND "lego_storesetitem"."store_id" = 17)
 ORDER BY
"lego_storesetitem"."id" ASC
 LIMIT
1
SELECT ••• FROM "lego_storesetitem" INNER JOIN "lego_store" ON ("lego_storesetitem"."store_id" = "lego_store"."id") WHERE (NOT "lego_storesetitem"."is_used" AND "lego_storesetitem"."set_id" = 3100 AND "lego_storesetitem"."store_id" = 17) ORDER BY "lego_storesetitem"."id" ASC LIMIT 1
2 similar queries. Duplicated 2 times.
0.15

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(423)
  context['merchant_store_costs'] = get_merchant_stores_cost(request.user, set)

/home/nathan/rb/site/./lego/buy/sets.py in get_merchant_stores_cost(455)
  res['img_link'] = MerchantStore.get_lego_link_for_user(user, set)

/home/nathan/rb/site/./lego/models/stores.py in get_lego_link_for_user(279)
  item = StoreSetItem.objects.select_related('store').filter(store=store, set_id=set.id, is_used=False).first()

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_inventory"."id" AS "inventory2",
       "lego_invset"."quantity" AS "quantity",
       "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr",
       T6."id",
       T6."parent_id",
       T6."name",
       T6."slug",
       T6."set_count",
       T6."t1_id",
       T6."t1_name",
       T6."t2_name",
       T6."t3_name",
       T6."lego_blurb",
       T6."banner_img",
       T6."descr",
       T7."id",
       T7."parent_id",
       T7."name",
       T7."slug",
       T7."set_count",
       T7."t1_id",
       T7."t1_name",
       T7."t2_name",
       T7."t3_name",
       T7."lego_blurb",
       T7."banner_img",
       T7."descr",
       "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_baseset"
 INNER JOIN
"lego_inventory"
    ON
("lego_baseset"."id" = "lego_inventory"."set_id")
 INNER JOIN
"lego_invset"
    ON
("lego_inventory"."id" = "lego_invset"."inventory_id")
 INNER JOIN
"lego_theme"
    ON
("lego_baseset"."theme_id" = "lego_theme"."id")
  LEFT OUTER JOIN
"lego_theme" T6
    ON
("lego_theme"."parent_id" = T6."id")
  LEFT OUTER JOIN
"lego_theme" T7
    ON
(T6."parent_id" = T7."id")
  LEFT OUTER JOIN
"lego_setstatstotal"
    ON
("lego_baseset"."id" = "lego_setstatstotal"."set_id")
 WHERE
("lego_baseset"."is_active" AND "lego_inventory"."is_active" AND "lego_invset"."inv_set_id" = 3100 AND "lego_baseset"."set_type" = 'Set')
 ORDER BY
"lego_baseset"."name" ASC
SELECT ••• FROM "lego_baseset" INNER JOIN "lego_inventory" ON ("lego_baseset"."id" = "lego_inventory"."set_id") INNER JOIN "lego_invset" ON ("lego_inventory"."id" = "lego_invset"."inventory_id") INNER JOIN "lego_theme" ON ("lego_baseset"."theme_id" = "lego_theme"."id") LEFT OUTER JOIN "lego_theme" T6 ON ("lego_theme"."parent_id" = T6."id") LEFT OUTER JOIN "lego_theme" T7 ON (T6."parent_id" = T7."id") LEFT OUTER JOIN "lego_setstatstotal" ON ("lego_baseset"."id" = "lego_setstatstotal"."set_id") WHERE ("lego_baseset"."is_active" AND "lego_inventory"."is_active" AND "lego_invset"."inv_set_id" = 3100 AND "lego_baseset"."set_type" = 'Set') ORDER BY "lego_baseset"."name" ASC
0.89

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(432)
  for s in context['parent_sets']:

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
("lego_inventory"."is_active" AND "lego_inventory"."id" = 140250)
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE ("lego_inventory"."is_active" AND "lego_inventory"."id" = 140250) LIMIT 21
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(433)
  s.inventory = get_or_none(Inventory.objects, id=s.inventory2)

/home/nathan/rb/site/./rb/utils.py in get_or_none(734)
  return manager.get(**kwargs)

SELECT "lego_setmap"."id",
       "lego_setmap"."set_id",
       "lego_setmap"."ext_system",
       "lego_setmap"."ext_id"
  FROM
"lego_setmap"
 WHERE
"lego_setmap"."set_id" = 3100
SELECT ••• FROM "lego_setmap" WHERE "lego_setmap"."set_id" = 3100
0.26

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(447)
  context['mappings'] = set.get_ext_mappings()

/home/nathan/rb/site/./lego/models/sets.py in get_ext_mappings(2058)
  for set_map in SetMap.objects.filter(set=self):

SELECT "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr"
  FROM
"lego_theme"
 WHERE
"lego_theme"."id" = 22
 LIMIT
21
SELECT ••• FROM "lego_theme" WHERE "lego_theme"."id" = 22 LIMIT 21
2 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/models/sets.py in __str__(153)
  if self.parent:

8 {% load static %}
9 {% load thumbs %}
10
11 {% block pagetitle %}LEGO Set {{ set.set_num }} {{ set.name }}{% if not set.is_figure %} ({{ set.year }} {{ set.theme }}){% endif %}{% endblock pagetitle %}
12 {% block page-header %}LEGO SET {{ set.set_num }} - {{ set.name }}{% endblock page-header %}
13 {% block canonical_url %}{% build_absolute_uri set.get_absolute_url %}{% endblock %}
14
15 {% block breadcrumbs %}

/home/nathan/rb/site/lego/templates/sets/set_details.html

SELECT "lego_setphoto"."id",
       "lego_setphoto"."set_id",
       "lego_setphoto"."photo_type_id",
       "lego_setphoto"."submitted_by_id",
       "lego_setphoto"."timestamp",
       "lego_setphoto"."is_active",
       "lego_setphoto"."is_primary"
  FROM
"lego_setphoto"
 WHERE
"lego_setphoto"."id" = 7690
 LIMIT
21
SELECT ••• FROM "lego_setphoto" WHERE "lego_setphoto"."id" = 7690 LIMIT 21
4 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(785)
  file_dir = self.primary_photo.get_img_dir()

34 {% block meta_description %}LEGO Set {{ set.set_num }} {{ set.name }} - building instructions and parts inventory.{% endblock meta_description %}
35 {% block meta_og_description %}LEGO Set {{ set.set_num }} {{ set.name }} - building instructions and parts inventory.{% endblock meta_og_description %}
36 {% block meta_image %}{% spaceless %}
37 {% if set.img_dir %}
38 {% thumbs set.img_dir settings.THUMBS_OPTIONS_SET_MAIN as img %}{{ img.url }}
39 {% endif %}
40 {% endspaceless %}{% endblock meta_image %}
41

/home/nathan/rb/site/lego/templates/sets/set_details.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 3100
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 3100 LIMIT 21
12 similar queries. Duplicated 2 times.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(785)
  file_dir = self.primary_photo.get_img_dir()

/home/nathan/rb/site/./lego/models/sets.py in get_img_dir(3210)
  return os.path.join('sets', self.set.set_num.lower(), str(self.id) + '.jpg')

34 {% block meta_description %}LEGO Set {{ set.set_num }} {{ set.name }} - building instructions and parts inventory.{% endblock meta_description %}
35 {% block meta_og_description %}LEGO Set {{ set.set_num }} {{ set.name }} - building instructions and parts inventory.{% endblock meta_og_description %}
36 {% block meta_image %}{% spaceless %}
37 {% if set.img_dir %}
38 {% thumbs set.img_dir settings.THUMBS_OPTIONS_SET_MAIN as img %}{{ img.url }}
39 {% endif %}
40 {% endspaceless %}{% endblock meta_image %}
41

/home/nathan/rb/site/lego/templates/sets/set_details.html

SELECT COUNT(*) AS "__count"
  FROM
"lego_setphoto"
 WHERE
("lego_setphoto"."is_active" AND "lego_setphoto"."set_id" = 3100)
SELECT ••• FROM "lego_setphoto" WHERE ("lego_setphoto"."is_active" AND "lego_setphoto"."set_id" = 3100)
0.21

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

73
74 {% else %}
75
76 {% if set.photos.count > 1 %}
77 {# Setup slider to move through multiple Set images #}
78 {# flexsliderX to avoid initialisation until we have loaded all images #}
79 <div class="row">
80 <div class="col-xs-12"> {# here so the nav arrows are positioned properly #}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_top.html

SELECT "lego_setphoto"."id",
       "lego_setphoto"."set_id",
       "lego_setphoto"."photo_type_id",
       "lego_setphoto"."submitted_by_id",
       "lego_setphoto"."timestamp",
       "lego_setphoto"."is_active",
       "lego_setphoto"."is_primary"
  FROM
"lego_setphoto"
 WHERE
("lego_setphoto"."is_active" AND "lego_setphoto"."set_id" = 3100)
 ORDER BY
"lego_setphoto"."is_primary" DESC, "lego_setphoto"."is_active" DESC, "lego_setphoto"."timestamp" ASC
SELECT ••• FROM "lego_setphoto" WHERE ("lego_setphoto"."is_active" AND "lego_setphoto"."set_id" = 3100) ORDER BY "lego_setphoto"."is_primary" DESC, "lego_setphoto"."is_active" DESC, "lego_setphoto"."timestamp" ASC
2 similar queries. Duplicated 2 times.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

82 <div class="flexslider text-center" data-controlNav="thumbnails" data-pauseOnHover="true"
83 data-directionNav="true" data-controlsContainer="#slider_controls">
84 <ul class="slides display-flex">
85 {% for photo in set.photos.all %} {# primary sorted first #}
86 {% thumbs photo.get_img_dir settings.THUMBS_OPTIONS_SET_MAIN_SM as tn_img %}
87 {% if forloop.counter == 1 %}
88 {% thumbs_encoded photo.get_img_dir settings.THUMBS_OPTIONS_SET_MAIN_PREVIEW as preview_img %}
89 {% thumbs photo.get_img_dir settings.THUMBS_OPTIONS_SET_MAIN get_real_dims=1 as first_image %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_top.html

SELECT "lego_setphototype"."id",
       "lego_setphototype"."name"
  FROM
"lego_setphototype"
 WHERE
"lego_setphototype"."id" = 3
 LIMIT
21
SELECT ••• FROM "lego_setphototype" WHERE "lego_setphototype"."id" = 3 LIMIT 21
0.18

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

91 <li data-thumb="{% cachebuster tn_img.url %}">
92 <a href="{{ merchant_store_costs.img_link|default:'' }}" target="_blank">
93 <img class="img-responsive" style="background-image:url('data:image;base64,{{ preview_img }}');background-size:contain;background-repeat:no-repeat"
94 title="LEGO Set {{ set }}{% if photo.photo_type %} ({{ photo.photo_type.name }}){% endif %}"
95 alt="LEGO Set {{ set }}{% if photo.photo_type %} ({{ photo.photo_type.name }}){% endif %}"
96 onload="this.style.backgroundImage=''" {# so transparent images dont have blurry bg #}
97 src="{% cachebuster first_image.url %}"
98 width="{{ first_image.width }}px" height="{{ first_image.height }}px">

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_top.html

SELECT "lego_setphoto"."id",
       "lego_setphoto"."set_id",
       "lego_setphoto"."photo_type_id",
       "lego_setphoto"."submitted_by_id",
       "lego_setphoto"."timestamp",
       "lego_setphoto"."is_active",
       "lego_setphoto"."is_primary"
  FROM
"lego_setphoto"
 WHERE
("lego_setphoto"."is_active" AND "lego_setphoto"."set_id" = 3100)
 ORDER BY
"lego_setphoto"."is_primary" DESC, "lego_setphoto"."is_active" DESC, "lego_setphoto"."timestamp" ASC
SELECT ••• FROM "lego_setphoto" WHERE ("lego_setphoto"."is_active" AND "lego_setphoto"."set_id" = 3100) ORDER BY "lego_setphoto"."is_primary" DESC, "lego_setphoto"."is_active" DESC, "lego_setphoto"."timestamp" ASC
2 similar queries. Duplicated 2 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

115 </ul>
116 </div>
117 {# pre-create controls div so we can size column height without CLS impact and prevents flicker #}
118 <div class="flexslider-controls-container-sets {% if set.photos.all|length > 6 %}flexslider-controls-container-sets-2rows{% endif %}">
119 <div id="slider_controls" class="text-center"></div>
120 </div>
121 </div>
122 </div>

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_top.html

SELECT "lego_setphoto"."id",
       "lego_setphoto"."set_id",
       "lego_setphoto"."photo_type_id",
       "lego_setphoto"."submitted_by_id",
       "lego_setphoto"."timestamp",
       "lego_setphoto"."is_active",
       "lego_setphoto"."is_primary"
  FROM
"lego_setphoto"
 WHERE
"lego_setphoto"."id" = 103613
 LIMIT
21
SELECT ••• FROM "lego_setphoto" WHERE "lego_setphoto"."id" = 103613 LIMIT 21
4 similar queries.
0.30

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(785)
  file_dir = self.primary_photo.get_img_dir()

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 137408
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 137408 LIMIT 21
12 similar queries.
0.18

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(785)
  file_dir = self.primary_photo.get_img_dir()

/home/nathan/rb/site/./lego/models/sets.py in get_img_dir(3210)
  return os.path.join('sets', self.set.set_num.lower(), str(self.id) + '.jpg')

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

select prev_num,
       next_num
  from
(
        select set_num,
               lag(set_num) over (order by theme_id, set_num) as prev_num,
               lead(set_num) over (order by theme_id, set_num) as next_num
          from
(
                select set_num,
                       theme_id,
                       nullif(regexp_replace(substring(set_num, 0, position('-' in set_num)), '[^0-9]', '', 'g'), '')::bigint as int_num
                  from
lego_baseset
                 where
set_type in ('Set')
               ) x
       ) y
 where
set_num = '31014-1'
select prev_num, next_num from ( select set_num, lag(set_num) over (order by theme_id, set_num) as prev_num, lead(set_num) over (order by theme_id, set_num) as next_num from ( select set_num, theme_id, nullif(regexp_replace(substring(set_num, 0, position('-' in set_num)), '[^0-9]', '', 'g'), '')::bigint as int_num from lego_baseset where set_type in ('Set') ) x ) y where set_num = '31014-1'
84.22

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./cache/utils.py in cache_wrapper(98)
  result = method(instance, *args, **kwargs)

/home/nathan/rb/site/./lego/models/sets.py in get_next_prev_sets(614)
  rows = run_sql(sql)

/home/nathan/rb/site/./rb/utils.py in run_sql(793)
  cursor.execute(sql, params)

12 <h3 class="text-center mb-0">
13 {{ set.set_num }}
14 </h3>
15 {% with set.get_next_prev_sets as next_prev_sets %}
16 <div class="flex-row mb-30">
17 {% if next_prev_sets.0 %}
18 <div class="flex-grow">
19 <span class="size-12x trunc" title="{{ next_prev_sets.0.set }}"><a href="{{ next_prev_sets.0.get_absolute_url }}"><i class="fa fa-chevron-left"></i> {{ next_prev_sets.0.set_num }}</a></span>

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr",
       T3."id",
       T3."parent_id",
       T3."name",
       T3."slug",
       T3."set_count",
       T3."t1_id",
       T3."t1_name",
       T3."t2_name",
       T3."t3_name",
       T3."lego_blurb",
       T3."banner_img",
       T3."descr",
       T4."id",
       T4."parent_id",
       T4."name",
       T4."slug",
       T4."set_count",
       T4."t1_id",
       T4."t1_name",
       T4."t2_name",
       T4."t3_name",
       T4."lego_blurb",
       T4."banner_img",
       T4."descr",
       "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_baseset"
 INNER JOIN
"lego_theme"
    ON
("lego_baseset"."theme_id" = "lego_theme"."id")
  LEFT OUTER JOIN
"lego_theme" T3
    ON
("lego_theme"."parent_id" = T3."id")
  LEFT OUTER JOIN
"lego_theme" T4
    ON
(T3."parent_id" = T4."id")
  LEFT OUTER JOIN
"lego_setstatstotal"
    ON
("lego_baseset"."id" = "lego_setstatstotal"."set_id")
 WHERE
("lego_baseset"."is_active" AND "lego_baseset"."set_num" = '31013-1')
 LIMIT
21
SELECT ••• FROM "lego_baseset" INNER JOIN "lego_theme" ON ("lego_baseset"."theme_id" = "lego_theme"."id") LEFT OUTER JOIN "lego_theme" T3 ON ("lego_theme"."parent_id" = T3."id") LEFT OUTER JOIN "lego_theme" T4 ON (T3."parent_id" = T4."id") LEFT OUTER JOIN "lego_setstatstotal" ON ("lego_baseset"."id" = "lego_setstatstotal"."set_id") WHERE ("lego_baseset"."is_active" AND "lego_baseset"."set_num" = '31013-1') LIMIT 21
2 similar queries.
0.71

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./cache/utils.py in cache_wrapper(98)
  result = method(instance, *args, **kwargs)

/home/nathan/rb/site/./lego/models/sets.py in get_next_prev_sets(616)
  return get_or_none(BaseSet.objects, set_num=prev_num), get_or_none(BaseSet.objects, set_num=next_num)

/home/nathan/rb/site/./rb/utils.py in get_or_none(734)
  return manager.get(**kwargs)

12 <h3 class="text-center mb-0">
13 {{ set.set_num }}
14 </h3>
15 {% with set.get_next_prev_sets as next_prev_sets %}
16 <div class="flex-row mb-30">
17 {% if next_prev_sets.0 %}
18 <div class="flex-grow">
19 <span class="size-12x trunc" title="{{ next_prev_sets.0.set }}"><a href="{{ next_prev_sets.0.get_absolute_url }}"><i class="fa fa-chevron-left"></i> {{ next_prev_sets.0.set_num }}</a></span>

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr",
       T3."id",
       T3."parent_id",
       T3."name",
       T3."slug",
       T3."set_count",
       T3."t1_id",
       T3."t1_name",
       T3."t2_name",
       T3."t3_name",
       T3."lego_blurb",
       T3."banner_img",
       T3."descr",
       T4."id",
       T4."parent_id",
       T4."name",
       T4."slug",
       T4."set_count",
       T4."t1_id",
       T4."t1_name",
       T4."t2_name",
       T4."t3_name",
       T4."lego_blurb",
       T4."banner_img",
       T4."descr",
       "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_baseset"
 INNER JOIN
"lego_theme"
    ON
("lego_baseset"."theme_id" = "lego_theme"."id")
  LEFT OUTER JOIN
"lego_theme" T3
    ON
("lego_theme"."parent_id" = T3."id")
  LEFT OUTER JOIN
"lego_theme" T4
    ON
(T3."parent_id" = T4."id")
  LEFT OUTER JOIN
"lego_setstatstotal"
    ON
("lego_baseset"."id" = "lego_setstatstotal"."set_id")
 WHERE
("lego_baseset"."is_active" AND "lego_baseset"."set_num" = '31015-1')
 LIMIT
21
SELECT ••• FROM "lego_baseset" INNER JOIN "lego_theme" ON ("lego_baseset"."theme_id" = "lego_theme"."id") LEFT OUTER JOIN "lego_theme" T3 ON ("lego_theme"."parent_id" = T3."id") LEFT OUTER JOIN "lego_theme" T4 ON (T3."parent_id" = T4."id") LEFT OUTER JOIN "lego_setstatstotal" ON ("lego_baseset"."id" = "lego_setstatstotal"."set_id") WHERE ("lego_baseset"."is_active" AND "lego_baseset"."set_num" = '31015-1') LIMIT 21
2 similar queries.
0.41

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./cache/utils.py in cache_wrapper(98)
  result = method(instance, *args, **kwargs)

/home/nathan/rb/site/./lego/models/sets.py in get_next_prev_sets(616)
  return get_or_none(BaseSet.objects, set_num=prev_num), get_or_none(BaseSet.objects, set_num=next_num)

/home/nathan/rb/site/./rb/utils.py in get_or_none(734)
  return manager.get(**kwargs)

12 <h3 class="text-center mb-0">
13 {{ set.set_num }}
14 </h3>
15 {% with set.get_next_prev_sets as next_prev_sets %}
16 <div class="flex-row mb-30">
17 {% if next_prev_sets.0 %}
18 <div class="flex-grow">
19 <span class="size-12x trunc" title="{{ next_prev_sets.0.set }}"><a href="{{ next_prev_sets.0.get_absolute_url }}"><i class="fa fa-chevron-left"></i> {{ next_prev_sets.0.set_num }}</a></span>

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_set"."baseset_ptr_id",
       "lego_set"."start_date",
       "lego_set"."end_date"
  FROM
"lego_set"
 INNER JOIN
"lego_baseset"
    ON
("lego_set"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_set"."baseset_ptr_id" = 3011
 LIMIT
21
SELECT ••• FROM "lego_set" INNER JOIN "lego_baseset" ON ("lego_set"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_set"."baseset_ptr_id" = 3011 LIMIT 21
4 similar queries.
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

16 <div class="flex-row mb-30">
17 {% if next_prev_sets.0 %}
18 <div class="flex-grow">
19 <span class="size-12x trunc" title="{{ next_prev_sets.0.set }}"><a href="{{ next_prev_sets.0.get_absolute_url }}"><i class="fa fa-chevron-left"></i> {{ next_prev_sets.0.set_num }}</a></span>
20 </div>
21 {% endif %}
22 {% if next_prev_sets.1 %}
23 <div class="">

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_set"."baseset_ptr_id",
       "lego_set"."start_date",
       "lego_set"."end_date"
  FROM
"lego_set"
 INNER JOIN
"lego_baseset"
    ON
("lego_set"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_set"."baseset_ptr_id" = 8437
 LIMIT
21
SELECT ••• FROM "lego_set" INNER JOIN "lego_baseset" ON ("lego_set"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_set"."baseset_ptr_id" = 8437 LIMIT 21
4 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

21 {% endif %}
22 {% if next_prev_sets.1 %}
23 <div class="">
24 <span class="size-12x pull-right trunc" title="{{ next_prev_sets.1.set }}"><a href="{{ next_prev_sets.1.get_absolute_url }}">{{ next_prev_sets.1.set_num }} <i class="fa fa-chevron-right"></i></a></span>
25 </div>
26 {% endif %}
27 </div>
28 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT COUNT(*) AS "__count"
  FROM
"lego_inventory"
 WHERE
("lego_inventory"."is_active" AND "lego_inventory"."set_id" = 3100)
SELECT ••• FROM "lego_inventory" WHERE ("lego_inventory"."is_active" AND "lego_inventory"."set_id" = 3100)
8.52

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/models/sets.py in get_num_inventories(1028)
  return Inventory.objects.filter(set=self).count()

68 {% endif %}
69 <tr>
70 <td>Inventory</td>
71 <td><a href="#parts_scroll">{{ set.num_parts }} parts{% if set.get_num_inventories > 1 %} <span class="label label-primary">v{{ inventory.version }}</span>{% endif %}</a></td>
72 </tr>
73 {% if set.is_figure %}
74 <tr>
75 <td>Found In</td>

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT "blog_article"."id",
       "blog_article"."title",
       "blog_article"."author_id",
       "blog_article"."published_date",
       "blog_article"."is_active",
       "blog_article"."body",
       "blog_article"."meta_description",
       "blog_article"."meta_img",
       "blog_article"."slug",
       "blog_article"."category_id",
       "blog_article"."ads",
       "blog_article"."show_ads_for_set_num",
       "blog_article"."review_for_set_num",
       "blog_article"."status",
       "blog_article"."scheduled_net",
       "blog_article"."ready_for_review_date",
       "blog_article"."is_sensitive",
       "blog_article"."search_vector"
  FROM
"blog_article"
 WHERE
("blog_article"."is_active" AND "blog_article"."review_for_set_num"::text LIKE '%31014-1%')
 ORDER BY
"blog_article"."published_date" ASC
SELECT ••• FROM "blog_article" WHERE ("blog_article"."is_active" AND "blog_article"."review_for_set_num"::text LIKE '%31014-1%') ORDER BY "blog_article"."published_date" ASC
0.30

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/models/sets.py in get_set_review(1444)
  for review in reviews:

120 {% endif %}
121 </table>
122
123 {% with set.get_set_review as review %}
124 {% if review %}
125 <p>See our review:</p>
126 {% include 'blog/includes/render_posts_preview.html' with article=review %}
127 {% endif %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT (width*height) AS "area",
       "ads_banner"."id",
       "ads_banner"."width",
       "ads_banner"."height",
       "ads_banner"."start_date",
       "ads_banner"."end_date",
       "ads_banner"."country_code",
       "ads_banner"."html"
  FROM
"ads_banner"
 WHERE
("ads_banner"."start_date" < '2026-11-16T00:44:24.045982+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:24.046061+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:24.045966+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:24.046229+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US')
SELECT ••• FROM "ads_banner" WHERE ("ads_banner"."start_date" < '2026-11-16T00:44:24.045982+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:24.046061+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:24.045966+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:24.046229+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US')
3 similar queries.
2.63

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./ads/templatetags/ads/drawing.py in render_banner(291)
  if not banners:

193 {% endcache %}
194
195 {# cant include banner in cache as it's region specific #}
196 {% render_banner 262 350 0 %}
197
198 {% cache cache_timeout 'set_sidebar_top_other_bit' user.is_authenticated set.id %}
199 {% if request.user.is_authenticated and not set.is_pending %}
200 {% if not set.is_figure %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT (width*height) AS "area",
       "ads_banner"."id",
       "ads_banner"."width",
       "ads_banner"."height",
       "ads_banner"."start_date",
       "ads_banner"."end_date",
       "ads_banner"."country_code",
       "ads_banner"."html"
  FROM
"ads_banner"
 WHERE
("ads_banner"."start_date" < '2026-11-16T00:44:24.045982+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:24.046061+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:24.045966+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:24.046229+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US')
 ORDER BY
1 DESC, RANDOM() ASC
 LIMIT
1
SELECT ••• FROM "ads_banner" WHERE ("ads_banner"."start_date" < '2026-11-16T00:44:24.045982+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:24.046061+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:24.045966+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:24.046229+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US') ORDER BY 1 DESC, RANDOM() ASC LIMIT 1
3 similar queries.
1.25

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./ads/templatetags/ads/drawing.py in render_banner(298)
  banner = banners.order_by('-area', '?')[0]

193 {% endcache %}
194
195 {# cant include banner in cache as it's region specific #}
196 {% render_banner 262 350 0 %}
197
198 {% cache cache_timeout 'set_sidebar_top_other_bit' user.is_authenticated set.id %}
199 {% if request.user.is_authenticated and not set.is_pending %}
200 {% if not set.is_figure %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_set"."baseset_ptr_id",
       "lego_set"."start_date",
       "lego_set"."end_date"
  FROM
"lego_set"
 INNER JOIN
"lego_baseset"
    ON
("lego_set"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_set"."baseset_ptr_id" = 3100
 LIMIT
21
SELECT ••• FROM "lego_set" INNER JOIN "lego_baseset" ON ("lego_set"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_set"."baseset_ptr_id" = 3100 LIMIT 21
4 similar queries. Duplicated 2 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

268 <section class="padding-xxs">
269 <h4 class="text-center">External Sites</h4>
270 <table class="table">
271 <p>This {% if set.set %}Set{% else %}Minifig{% endif %} is known differently at other sites:</p>
272 {% for external_site, set_maps in mappings.items %}
273 <tr>
274 <td>{{ external_site }}</td>
275 <td>

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined"
  FROM
"auth_user"
 WHERE
"auth_user"."id" = 2
 LIMIT
21
SELECT ••• FROM "auth_user" WHERE "auth_user"."id" = 2 LIMIT 21
2 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

4 {% with cache_timeout=user.is_authenticated|yesno:"3600,3600" %}
5 {% cache cache_timeout 'change_summary' user.is_authenticated set.id 'v3' %}
6 <div><small><i class="fa fa-fw fa-eye" title="Views"></i> {{ set.stats.hits|default:0|floor_100|intcomma }}</small></div>
7 {% if set.added_dt and set.added_by %}
8 <div><small><i class="fa fa-fw fa-plus" title="Added"></i> {{ set.added_dt }}
9 {% if set.added_by %}by
10 <a href="{% url 'user_profile' set.added_by.username %}">{{ set.added_by.username }}</a>
11 {% endif %}</small></div>

/home/nathan/rb/site/lego/templates/sets/includes/render_change_summary.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined"
  FROM
"auth_user"
 WHERE
"auth_user"."id" = 1
 LIMIT
21
SELECT ••• FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 21
2 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

16 {% endif %}</small></div>
17 {% endif %}
18 <div><small><i class="fa fa-fw fa-edit" title="Updated"></i> {{ changes.updated.timestamp }}
19 {% if changes.updated.user %}by
20 <a href="{% url 'user_profile' changes.updated.user.get_username %}">{{ changes.updated.user.get_username }}</a>
21 {% endif %}</small></div>
22 <div class="mb-10"><small><a href="{% url 'change_log' %}?search_id={{ set.set_num }}">See Change Log for {{ set.set_num }}</a></small></div>
23 {% if user.is_authenticated %}

/home/nathan/rb/site/lego/templates/sets/includes/render_change_summary.html

SELECT "django_content_type"."id",
       "django_content_type"."app_label",
       "django_content_type"."model"
  FROM
"django_content_type"
 WHERE
("django_content_type"."app_label" = 'lego' AND "django_content_type"."model" = 'set')
 LIMIT
21
SELECT ••• FROM "django_content_type" WHERE ("django_content_type"."app_label" = 'lego' AND "django_content_type"."model" = 'set') LIMIT 21
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./rb_comments/templatetags/rb_comments_filters.py in get_page_locked_status(178)
  content_type = ContentType.objects.get(app_label=page_content_type.split('.')[0], model=page_content_type.split('.')[1])

5
6 <div id="comments-{{ page.id }}">
7
8 {% get_page_locked_status content_type page.id as is_page_locked %}
9
10 {% comment %}
11 Not using render_comment_list as it uses styles in ul/li that I can't seem to get working well with Smarty.
12 Using fluent-comments to hide unused fields and do ajax add/reply comment.

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT 1 AS "a"
  FROM
"rb_comments_pagelocked"
 WHERE
("rb_comments_pagelocked"."content_type_id" = 63 AND "rb_comments_pagelocked"."object_id" = 3100)
 LIMIT
1
SELECT ••• FROM "rb_comments_pagelocked" WHERE ("rb_comments_pagelocked"."content_type_id" = 63 AND "rb_comments_pagelocked"."object_id" = 3100) LIMIT 1
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./rb_comments/templatetags/rb_comments_filters.py in get_page_locked_status(179)
  is_locked = PageLocked.objects.filter(content_type=content_type, object_id=page_id).exists()

5
6 <div id="comments-{{ page.id }}">
7
8 {% get_page_locked_status content_type page.id as is_page_locked %}
9
10 {% comment %}
11 Not using render_comment_list as it uses styles in ul/li that I can't seem to get working well with Smarty.
12 Using fluent-comments to hide unused fields and do ajax add/reply comment.

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT "django_comments"."id",
       "django_comments"."content_type_id",
       "django_comments"."object_pk",
       "django_comments"."site_id",
       "django_comments"."user_id",
       "django_comments"."user_name",
       "django_comments"."user_email",
       "django_comments"."user_url",
       "django_comments"."comment",
       "django_comments"."submit_date",
       "django_comments"."ip_address",
       "django_comments"."is_public",
       "django_comments"."is_removed",
       "threadedcomments_comment"."comment_ptr_id",
       "threadedcomments_comment"."title",
       "threadedcomments_comment"."parent_id",
       "threadedcomments_comment"."last_child_id",
       "threadedcomments_comment"."tree_path",
       "threadedcomments_comment"."newest_activity",
       "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent",
       "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly",
       "accounts_userprofile"."user_id",
       "accounts_userprofile"."last_mod_inv",
       "accounts_userprofile"."last_activity",
       "accounts_userprofile"."last_ip",
       "accounts_userprofile"."last_country_id",
       "accounts_userprofile"."last_agent",
       "accounts_userprofile"."is_email_verified",
       "accounts_userprofile"."is_email_idle",
       "accounts_userprofile"."email_last_clicked",
       "accounts_userprofile"."api_token",
       "accounts_userprofile"."real_name",
       "accounts_userprofile"."location",
       "accounts_userprofile"."brickset_url",
       "accounts_userprofile"."mocpages_url",
       "accounts_userprofile"."flickr_url",
       "accounts_userprofile"."eurobricks_url",
       "accounts_userprofile"."youtube_url",
       "accounts_userprofile"."bricklink_url",
       "accounts_userprofile"."brickowl_url",
       "accounts_userprofile"."bricksafe_url",
       "accounts_userprofile"."website_url",
       "accounts_userprofile"."facebook_url",
       "accounts_userprofile"."twitter_url",
       "accounts_userprofile"."karma",
       "accounts_userprofile"."trophy_badge_id",
       "accounts_userprofile"."comments",
       "accounts_userprofile"."mfhash_vector",
       "accounts_userprofile"."is_muted",
       "accounts_userprofile"."is_banned",
       "accounts_userprofile"."is_suspected_pirate",
       "accounts_userprofile"."muted_until",
       "accounts_userprofile"."blocked_operations",
       "accounts_userprofile"."is_guest",
       "accounts_userprofile"."guest_token"
  FROM
"threadedcomments_comment"
 INNER JOIN
"django_comments"
    ON
("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id")
  LEFT OUTER JOIN
"auth_user"
    ON
("django_comments"."user_id" = "auth_user"."id")
  LEFT OUTER JOIN
"accounts_userplan"
    ON
("auth_user"."id" = "accounts_userplan"."user_id")
  LEFT OUTER JOIN
"plans_plan"
    ON
("accounts_userplan"."plan_id" = "plans_plan"."id")
  LEFT OUTER JOIN
"accounts_userprofile"
    ON
("auth_user"."id" = "accounts_userprofile"."user_id")
 WHERE
("django_comments"."content_type_id" = 63 AND "django_comments"."object_pk" = '3100' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
 ORDER BY
"threadedcomments_comment"."tree_path" ASC
SELECT ••• FROM "threadedcomments_comment" INNER JOIN "django_comments" ON ("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id") LEFT OUTER JOIN "auth_user" ON ("django_comments"."user_id" = "auth_user"."id") LEFT OUTER JOIN "accounts_userplan" ON ("auth_user"."id" = "accounts_userplan"."user_id") LEFT OUTER JOIN "plans_plan" ON ("accounts_userplan"."plan_id" = "plans_plan"."id") LEFT OUTER JOIN "accounts_userprofile" ON ("auth_user"."id" = "accounts_userprofile"."user_id") WHERE ("django_comments"."content_type_id" = 63 AND "django_comments"."object_pk" = '3100' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed") ORDER BY "threadedcomments_comment"."tree_path" ASC
1.97

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/venv_rb310/lib/python3.10/site-packages/django_comments/templatetags/comments.py in render(71)
  qs = self.get_queryset(context)

/home/nathan/rb/site/./rb_comments/templatetags/rb_comments_filters.py in get_queryset(62)
  comments = list(qs)

15 {% endcomment %}
16 {% if not comment_list %}
17 {# Get comments for a page #}
18 {% get_rb_comment_list for page as comment_list %}
19 {% get_comment_count for page as num_comments %}
20
21 {% if show_comment_count %}
22 <div class="clearfix">

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT ("auth_user_groups"."user_id") AS "_prefetch_related_val_user_id",
       "auth_group"."id",
       "auth_group"."name"
  FROM
"auth_group"
 INNER JOIN
"auth_user_groups"
    ON
("auth_group"."id" = "auth_user_groups"."group_id")
 WHERE
"auth_user_groups"."user_id" IN (52464, 561048, 339136, 489820, 2040929, 1716754, 1911034)
SELECT ••• FROM "auth_group" INNER JOIN "auth_user_groups" ON ("auth_group"."id" = "auth_user_groups"."group_id") WHERE "auth_user_groups"."user_id" IN (52464, 561048, 339136, 489820, 2040929, 1716754, 1911034)
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/venv_rb310/lib/python3.10/site-packages/django_comments/templatetags/comments.py in render(71)
  qs = self.get_queryset(context)

/home/nathan/rb/site/./rb_comments/templatetags/rb_comments_filters.py in get_queryset(62)
  comments = list(qs)

15 {% endcomment %}
16 {% if not comment_list %}
17 {# Get comments for a page #}
18 {% get_rb_comment_list for page as comment_list %}
19 {% get_comment_count for page as num_comments %}
20
21 {% if show_comment_count %}
22 <div class="clearfix">

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT "rb_comments_commentlike"."comment_id" AS "comment_id",
       COUNT("rb_comments_commentlike"."user_id") AS "user_id__count"
  FROM
"rb_comments_commentlike"
 WHERE
"rb_comments_commentlike"."comment_id" IN (1178895, 1336380, 1178634, 363244, 366555, 269242, 366557, 4591)
 GROUP BY
1
SELECT ••• FROM "rb_comments_commentlike" WHERE "rb_comments_commentlike"."comment_id" IN (1178895, 1336380, 1178634, 363244, 366555, 269242, 366557, 4591) GROUP BY 1
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/venv_rb310/lib/python3.10/site-packages/django_comments/templatetags/comments.py in render(71)
  qs = self.get_queryset(context)

/home/nathan/rb/site/./rb_comments/templatetags/rb_comments_filters.py in get_queryset(112)
  likes_map = {l['comment_id']: l['user_id__count'] for l in likes}

15 {% endcomment %}
16 {% if not comment_list %}
17 {# Get comments for a page #}
18 {% get_rb_comment_list for page as comment_list %}
19 {% get_comment_count for page as num_comments %}
20
21 {% if show_comment_count %}
22 <div class="clearfix">

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT "rb_comments_commentlike"."id",
       "rb_comments_commentlike"."user_id",
       "rb_comments_commentlike"."comment_id"
  FROM
"rb_comments_commentlike"
 WHERE
("rb_comments_commentlike"."comment_id" IN (1178895, 1336380, 1178634, 363244, 366555, 269242, 366557, 4591) AND "rb_comments_commentlike"."user_id" IS NULL)
SELECT ••• FROM "rb_comments_commentlike" WHERE ("rb_comments_commentlike"."comment_id" IN (1178895, 1336380, 1178634, 363244, 366555, 269242, 366557, 4591) AND "rb_comments_commentlike"."user_id" IS NULL)
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/venv_rb310/lib/python3.10/site-packages/django_comments/templatetags/comments.py in render(71)
  qs = self.get_queryset(context)

/home/nathan/rb/site/./rb_comments/templatetags/rb_comments_filters.py in get_queryset(114)
  user_likes_map = {l.comment_id: True for l in user_likes}

15 {% endcomment %}
16 {% if not comment_list %}
17 {# Get comments for a page #}
18 {% get_rb_comment_list for page as comment_list %}
19 {% get_comment_count for page as num_comments %}
20
21 {% if show_comment_count %}
22 <div class="clearfix">

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT COUNT(*) AS "__count"
  FROM
"threadedcomments_comment"
 INNER JOIN
"django_comments"
    ON
("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id")
 WHERE
("django_comments"."content_type_id" = 63 AND "django_comments"."object_pk" = '3100' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
SELECT ••• FROM "threadedcomments_comment" INNER JOIN "django_comments" ON ("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id") WHERE ("django_comments"."content_type_id" = 63 AND "django_comments"."object_pk" = '3100' AND "django_comments"."site_id" = 1 AND "django_comments"."is_public" AND NOT "django_comments"."is_removed")
0.16

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/venv_rb310/lib/python3.10/site-packages/django_comments/templatetags/comments.py in render(72)
  context[self.as_varname] = self.get_context_value_from_queryset(context, qs)

/home/nathan/venv_rb310/lib/python3.10/site-packages/threadedcomments/templatetags/threadedcomments_tags.py in get_context_value_from_queryset(116)
  return qs.count()

16 {% if not comment_list %}
17 {# Get comments for a page #}
18 {% get_rb_comment_list for page as comment_list %}
19 {% get_comment_count for page as num_comments %}
20
21 {% if show_comment_count %}
22 <div class="clearfix">
23 <div class="heading-title heading-border-bottom heading-color">

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT "avatar_avatar"."id",
       "avatar_avatar"."user_id",
       "avatar_avatar"."primary",
       "avatar_avatar"."avatar",
       "avatar_avatar"."date_uploaded"
  FROM
"avatar_avatar"
 WHERE
"avatar_avatar"."user_id" = 1716754
 ORDER BY
"avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC
 LIMIT
1
SELECT ••• FROM "avatar_avatar" WHERE "avatar_avatar"."user_id" = 1716754 ORDER BY "avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC LIMIT 1
8 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./avatar/templatetags/avatar_tags.py in avatar_url(33)
  avatar_url = provider.get_avatar_url(user, size)

/home/nathan/rb/site/./avatar/providers.py in get_avatar_url(48)
  avatar = get_primary_avatar(user, size)

/home/nathan/rb/site/./avatar/utils.py in get_primary_avatar(120)
  avatar = user.avatar_set.order_by("-primary", "-date_uploaded")[0]

36 {% if is_blocked %}
37 <img data-src="{% static settings.AVATAR_DEFAULT_URL %}" class="rb-comment__avatar" width="75px" height="75px">
38 {% else %}
39 <img data-src="{% avatar_url comment.user 75 %}" class="rb-comment__avatar" width="75px" height="75px" alt="Avatar image for Rebrickable user {{ comment.user }}">
40 {% endif %}
41 {# collapse/expand child comments #}
42 <div class="rb-comment__collapse-control js-collapse-comments" data-comment-id="{{ comment.id }}">
43 <i class="fa fa-minus-square-o fa-lg"></i>

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 1716754
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 1716754 LIMIT 21
18 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1716754)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1716754) LIMIT 1
17 similar queries. Duplicated 3 times.
0.17

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1716754)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1716754) LIMIT 1
17 similar queries. Duplicated 3 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}
63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1716754)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1716754) LIMIT 1
17 similar queries. Duplicated 3 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}
63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 1716754)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 1716754) LIMIT 21
277 similar queries. Duplicated 2 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}
68 {% endif %}
69 {% endif %}
70 {% if page.is_moc %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "django_comments"."id",
       "django_comments"."content_type_id",
       "django_comments"."object_pk",
       "django_comments"."site_id",
       "django_comments"."user_id",
       "django_comments"."user_name",
       "django_comments"."user_email",
       "django_comments"."user_url",
       "django_comments"."comment",
       "django_comments"."submit_date",
       "django_comments"."ip_address",
       "django_comments"."is_public",
       "django_comments"."is_removed",
       "threadedcomments_comment"."comment_ptr_id",
       "threadedcomments_comment"."title",
       "threadedcomments_comment"."parent_id",
       "threadedcomments_comment"."last_child_id",
       "threadedcomments_comment"."tree_path",
       "threadedcomments_comment"."newest_activity"
  FROM
"threadedcomments_comment"
 INNER JOIN
"django_comments"
    ON
("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id")
 WHERE
"threadedcomments_comment"."comment_ptr_id" = 1178895
 LIMIT
21
SELECT ••• FROM "threadedcomments_comment" INNER JOIN "django_comments" ON ("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id") WHERE "threadedcomments_comment"."comment_ptr_id" = 1178895 LIMIT 21
3 similar queries.
0.22

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

145 {% if not comment.open and not comment.close %}</li>{% endif %}
146 {% if comment.open %}
147 <ul class="rb-comment__thread">{% endif %}
148 <li class="rb-comment__item{% if comment.parent and comment.depth < 7 %} rb-comment__item--reply{% elif comment.parent %} rb-comment__item--deep{% endif %}">
149 {% include "comments/comment.html" %}
150 {% for close in comment.close %}
151 </li>
152 </ul>

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT "avatar_avatar"."id",
       "avatar_avatar"."user_id",
       "avatar_avatar"."primary",
       "avatar_avatar"."avatar",
       "avatar_avatar"."date_uploaded"
  FROM
"avatar_avatar"
 WHERE
"avatar_avatar"."user_id" = 1911034
 ORDER BY
"avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC
 LIMIT
1
SELECT ••• FROM "avatar_avatar" WHERE "avatar_avatar"."user_id" = 1911034 ORDER BY "avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC LIMIT 1
8 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./avatar/templatetags/avatar_tags.py in avatar_url(33)
  avatar_url = provider.get_avatar_url(user, size)

/home/nathan/rb/site/./avatar/providers.py in get_avatar_url(48)
  avatar = get_primary_avatar(user, size)

/home/nathan/rb/site/./avatar/utils.py in get_primary_avatar(120)
  avatar = user.avatar_set.order_by("-primary", "-date_uploaded")[0]

36 {% if is_blocked %}
37 <img data-src="{% static settings.AVATAR_DEFAULT_URL %}" class="rb-comment__avatar" width="75px" height="75px">
38 {% else %}
39 <img data-src="{% avatar_url comment.user 75 %}" class="rb-comment__avatar" width="75px" height="75px" alt="Avatar image for Rebrickable user {{ comment.user }}">
40 {% endif %}
41 {# collapse/expand child comments #}
42 <div class="rb-comment__collapse-control js-collapse-comments" data-comment-id="{{ comment.id }}">
43 <i class="fa fa-minus-square-o fa-lg"></i>

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 1911034
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 1911034 LIMIT 21
18 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1911034)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1911034) LIMIT 1
17 similar queries. Duplicated 3 times.
0.21

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1911034)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1911034) LIMIT 1
17 similar queries. Duplicated 3 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}
63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1911034)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 1911034) LIMIT 1
17 similar queries. Duplicated 3 times.
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}
63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "avatar_avatar"."id",
       "avatar_avatar"."user_id",
       "avatar_avatar"."primary",
       "avatar_avatar"."avatar",
       "avatar_avatar"."date_uploaded"
  FROM
"avatar_avatar"
 WHERE
"avatar_avatar"."user_id" = 2040929
 ORDER BY
"avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC
 LIMIT
1
SELECT ••• FROM "avatar_avatar" WHERE "avatar_avatar"."user_id" = 2040929 ORDER BY "avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC LIMIT 1
8 similar queries.
0.19

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./avatar/templatetags/avatar_tags.py in avatar_url(33)
  avatar_url = provider.get_avatar_url(user, size)

/home/nathan/rb/site/./avatar/providers.py in get_avatar_url(48)
  avatar = get_primary_avatar(user, size)

/home/nathan/rb/site/./avatar/utils.py in get_primary_avatar(120)
  avatar = user.avatar_set.order_by("-primary", "-date_uploaded")[0]

36 {% if is_blocked %}
37 <img data-src="{% static settings.AVATAR_DEFAULT_URL %}" class="rb-comment__avatar" width="75px" height="75px">
38 {% else %}
39 <img data-src="{% avatar_url comment.user 75 %}" class="rb-comment__avatar" width="75px" height="75px" alt="Avatar image for Rebrickable user {{ comment.user }}">
40 {% endif %}
41 {# collapse/expand child comments #}
42 <div class="rb-comment__collapse-control js-collapse-comments" data-comment-id="{{ comment.id }}">
43 <i class="fa fa-minus-square-o fa-lg"></i>

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 2040929
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 2040929 LIMIT 21
18 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 2040929)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 2040929) LIMIT 1
17 similar queries.
0.19

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "avatar_avatar"."id",
       "avatar_avatar"."user_id",
       "avatar_avatar"."primary",
       "avatar_avatar"."avatar",
       "avatar_avatar"."date_uploaded"
  FROM
"avatar_avatar"
 WHERE
"avatar_avatar"."user_id" = 489820
 ORDER BY
"avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC
 LIMIT
1
SELECT ••• FROM "avatar_avatar" WHERE "avatar_avatar"."user_id" = 489820 ORDER BY "avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC LIMIT 1
8 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./avatar/templatetags/avatar_tags.py in avatar_url(33)
  avatar_url = provider.get_avatar_url(user, size)

/home/nathan/rb/site/./avatar/providers.py in get_avatar_url(48)
  avatar = get_primary_avatar(user, size)

/home/nathan/rb/site/./avatar/utils.py in get_primary_avatar(120)
  avatar = user.avatar_set.order_by("-primary", "-date_uploaded")[0]

36 {% if is_blocked %}
37 <img data-src="{% static settings.AVATAR_DEFAULT_URL %}" class="rb-comment__avatar" width="75px" height="75px">
38 {% else %}
39 <img data-src="{% avatar_url comment.user 75 %}" class="rb-comment__avatar" width="75px" height="75px" alt="Avatar image for Rebrickable user {{ comment.user }}">
40 {% endif %}
41 {# collapse/expand child comments #}
42 <div class="rb-comment__collapse-control js-collapse-comments" data-comment-id="{{ comment.id }}">
43 <i class="fa fa-minus-square-o fa-lg"></i>

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 489820
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 489820 LIMIT 21
18 similar queries.
0.17

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 489820)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 489820) LIMIT 1
17 similar queries. Duplicated 3 times.
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 489820)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 489820) LIMIT 1
17 similar queries. Duplicated 3 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}
63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 489820)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 489820) LIMIT 1
17 similar queries. Duplicated 3 times.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}
63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "django_comments"."id",
       "django_comments"."content_type_id",
       "django_comments"."object_pk",
       "django_comments"."site_id",
       "django_comments"."user_id",
       "django_comments"."user_name",
       "django_comments"."user_email",
       "django_comments"."user_url",
       "django_comments"."comment",
       "django_comments"."submit_date",
       "django_comments"."ip_address",
       "django_comments"."is_public",
       "django_comments"."is_removed",
       "threadedcomments_comment"."comment_ptr_id",
       "threadedcomments_comment"."title",
       "threadedcomments_comment"."parent_id",
       "threadedcomments_comment"."last_child_id",
       "threadedcomments_comment"."tree_path",
       "threadedcomments_comment"."newest_activity"
  FROM
"threadedcomments_comment"
 INNER JOIN
"django_comments"
    ON
("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id")
 WHERE
"threadedcomments_comment"."comment_ptr_id" = 363244
 LIMIT
21
SELECT ••• FROM "threadedcomments_comment" INNER JOIN "django_comments" ON ("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id") WHERE "threadedcomments_comment"."comment_ptr_id" = 363244 LIMIT 21
3 similar queries.
0.19

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

145 {% if not comment.open and not comment.close %}</li>{% endif %}
146 {% if comment.open %}
147 <ul class="rb-comment__thread">{% endif %}
148 <li class="rb-comment__item{% if comment.parent and comment.depth < 7 %} rb-comment__item--reply{% elif comment.parent %} rb-comment__item--deep{% endif %}">
149 {% include "comments/comment.html" %}
150 {% for close in comment.close %}
151 </li>
152 </ul>

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT "avatar_avatar"."id",
       "avatar_avatar"."user_id",
       "avatar_avatar"."primary",
       "avatar_avatar"."avatar",
       "avatar_avatar"."date_uploaded"
  FROM
"avatar_avatar"
 WHERE
"avatar_avatar"."user_id" = 339136
 ORDER BY
"avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC
 LIMIT
1
SELECT ••• FROM "avatar_avatar" WHERE "avatar_avatar"."user_id" = 339136 ORDER BY "avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC LIMIT 1
8 similar queries. Duplicated 2 times.
0.34

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./avatar/templatetags/avatar_tags.py in avatar_url(33)
  avatar_url = provider.get_avatar_url(user, size)

/home/nathan/rb/site/./avatar/providers.py in get_avatar_url(48)
  avatar = get_primary_avatar(user, size)

/home/nathan/rb/site/./avatar/utils.py in get_primary_avatar(120)
  avatar = user.avatar_set.order_by("-primary", "-date_uploaded")[0]

36 {% if is_blocked %}
37 <img data-src="{% static settings.AVATAR_DEFAULT_URL %}" class="rb-comment__avatar" width="75px" height="75px">
38 {% else %}
39 <img data-src="{% avatar_url comment.user 75 %}" class="rb-comment__avatar" width="75px" height="75px" alt="Avatar image for Rebrickable user {{ comment.user }}">
40 {% endif %}
41 {# collapse/expand child comments #}
42 <div class="rb-comment__collapse-control js-collapse-comments" data-comment-id="{{ comment.id }}">
43 <i class="fa fa-minus-square-o fa-lg"></i>

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 339136
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 339136 LIMIT 21
18 similar queries. Duplicated 2 times.
0.15

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136) LIMIT 1
17 similar queries. Duplicated 6 times.
0.22

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136) LIMIT 1
17 similar queries. Duplicated 6 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}
63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136) LIMIT 1
17 similar queries. Duplicated 6 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}
63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.26

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}
68 {% endif %}
69 {% endif %}
70 {% if page.is_moc %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "avatar_avatar"."id",
       "avatar_avatar"."user_id",
       "avatar_avatar"."primary",
       "avatar_avatar"."avatar",
       "avatar_avatar"."date_uploaded"
  FROM
"avatar_avatar"
 WHERE
"avatar_avatar"."user_id" = 561048
 ORDER BY
"avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC
 LIMIT
1
SELECT ••• FROM "avatar_avatar" WHERE "avatar_avatar"."user_id" = 561048 ORDER BY "avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC LIMIT 1
8 similar queries.
0.17

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./avatar/templatetags/avatar_tags.py in avatar_url(33)
  avatar_url = provider.get_avatar_url(user, size)

/home/nathan/rb/site/./avatar/providers.py in get_avatar_url(48)
  avatar = get_primary_avatar(user, size)

/home/nathan/rb/site/./avatar/utils.py in get_primary_avatar(120)
  avatar = user.avatar_set.order_by("-primary", "-date_uploaded")[0]

36 {% if is_blocked %}
37 <img data-src="{% static settings.AVATAR_DEFAULT_URL %}" class="rb-comment__avatar" width="75px" height="75px">
38 {% else %}
39 <img data-src="{% avatar_url comment.user 75 %}" class="rb-comment__avatar" width="75px" height="75px" alt="Avatar image for Rebrickable user {{ comment.user }}">
40 {% endif %}
41 {# collapse/expand child comments #}
42 <div class="rb-comment__collapse-control js-collapse-comments" data-comment-id="{{ comment.id }}">
43 <i class="fa fa-minus-square-o fa-lg"></i>

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 561048
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 561048 LIMIT 21
18 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 561048)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 561048) LIMIT 1
17 similar queries.
0.32

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "django_comments"."id",
       "django_comments"."content_type_id",
       "django_comments"."object_pk",
       "django_comments"."site_id",
       "django_comments"."user_id",
       "django_comments"."user_name",
       "django_comments"."user_email",
       "django_comments"."user_url",
       "django_comments"."comment",
       "django_comments"."submit_date",
       "django_comments"."ip_address",
       "django_comments"."is_public",
       "django_comments"."is_removed",
       "threadedcomments_comment"."comment_ptr_id",
       "threadedcomments_comment"."title",
       "threadedcomments_comment"."parent_id",
       "threadedcomments_comment"."last_child_id",
       "threadedcomments_comment"."tree_path",
       "threadedcomments_comment"."newest_activity"
  FROM
"threadedcomments_comment"
 INNER JOIN
"django_comments"
    ON
("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id")
 WHERE
"threadedcomments_comment"."comment_ptr_id" = 269242
 LIMIT
21
SELECT ••• FROM "threadedcomments_comment" INNER JOIN "django_comments" ON ("threadedcomments_comment"."comment_ptr_id" = "django_comments"."id") WHERE "threadedcomments_comment"."comment_ptr_id" = 269242 LIMIT 21
3 similar queries.
0.29

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

145 {% if not comment.open and not comment.close %}</li>{% endif %}
146 {% if comment.open %}
147 <ul class="rb-comment__thread">{% endif %}
148 <li class="rb-comment__item{% if comment.parent and comment.depth < 7 %} rb-comment__item--reply{% elif comment.parent %} rb-comment__item--deep{% endif %}">
149 {% include "comments/comment.html" %}
150 {% for close in comment.close %}
151 </li>
152 </ul>

/home/nathan/rb/site/rb_comments/templates/comments/render_comment_list.html

SELECT "avatar_avatar"."id",
       "avatar_avatar"."user_id",
       "avatar_avatar"."primary",
       "avatar_avatar"."avatar",
       "avatar_avatar"."date_uploaded"
  FROM
"avatar_avatar"
 WHERE
"avatar_avatar"."user_id" = 339136
 ORDER BY
"avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC
 LIMIT
1
SELECT ••• FROM "avatar_avatar" WHERE "avatar_avatar"."user_id" = 339136 ORDER BY "avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC LIMIT 1
8 similar queries. Duplicated 2 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./avatar/templatetags/avatar_tags.py in avatar_url(33)
  avatar_url = provider.get_avatar_url(user, size)

/home/nathan/rb/site/./avatar/providers.py in get_avatar_url(48)
  avatar = get_primary_avatar(user, size)

/home/nathan/rb/site/./avatar/utils.py in get_primary_avatar(120)
  avatar = user.avatar_set.order_by("-primary", "-date_uploaded")[0]

36 {% if is_blocked %}
37 <img data-src="{% static settings.AVATAR_DEFAULT_URL %}" class="rb-comment__avatar" width="75px" height="75px">
38 {% else %}
39 <img data-src="{% avatar_url comment.user 75 %}" class="rb-comment__avatar" width="75px" height="75px" alt="Avatar image for Rebrickable user {{ comment.user }}">
40 {% endif %}
41 {# collapse/expand child comments #}
42 <div class="rb-comment__collapse-control js-collapse-comments" data-comment-id="{{ comment.id }}">
43 <i class="fa fa-minus-square-o fa-lg"></i>

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 339136
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 339136 LIMIT 21
18 similar queries. Duplicated 2 times.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136) LIMIT 1
17 similar queries. Duplicated 6 times.
0.18

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136) LIMIT 1
17 similar queries. Duplicated 6 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}
63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT 1 AS "a"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136)
 LIMIT
1
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."designer_id" = 339136) LIMIT 1
17 similar queries. Duplicated 6 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}
63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

63 <span class="rb-chip rb-chip--sm rb-chip--info" title="{{ comment.user.get_rolename.1 }}">{{ comment.user.get_rolename.0 }}</span>
64 {% endif %}
65 {% if not comment.user.plan.is_free %}
66 {% if comment.user.is_public_plan %}
67 {{ comment.user.get_plan_html }}
68 {% endif %}
69 {% endif %}
70 {% if page.is_moc %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "avatar_avatar"."id",
       "avatar_avatar"."user_id",
       "avatar_avatar"."primary",
       "avatar_avatar"."avatar",
       "avatar_avatar"."date_uploaded"
  FROM
"avatar_avatar"
 WHERE
"avatar_avatar"."user_id" = 52464
 ORDER BY
"avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC
 LIMIT
1
SELECT ••• FROM "avatar_avatar" WHERE "avatar_avatar"."user_id" = 52464 ORDER BY "avatar_avatar"."primary" DESC, "avatar_avatar"."date_uploaded" DESC LIMIT 1
8 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./avatar/templatetags/avatar_tags.py in avatar_url(33)
  avatar_url = provider.get_avatar_url(user, size)

/home/nathan/rb/site/./avatar/providers.py in get_avatar_url(48)
  avatar = get_primary_avatar(user, size)

/home/nathan/rb/site/./avatar/utils.py in get_primary_avatar(120)
  avatar = user.avatar_set.order_by("-primary", "-date_uploaded")[0]

36 {% if is_blocked %}
37 <img data-src="{% static settings.AVATAR_DEFAULT_URL %}" class="rb-comment__avatar" width="75px" height="75px">
38 {% else %}
39 <img data-src="{% avatar_url comment.user 75 %}" class="rb-comment__avatar" width="75px" height="75px" alt="Avatar image for Rebrickable user {{ comment.user }}">
40 {% endif %}
41 {# collapse/expand child comments #}
42 <div class="rb-comment__collapse-control js-collapse-comments" data-comment-id="{{ comment.id }}">
43 <i class="fa fa-minus-square-o fa-lg"></i>

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 52464
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 52464 LIMIT 21
18 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./accounts/models/user_extras.py in get_rolename(634)
  elif hasattr(self, 'designer') and Moc.objects.filter(designer=self.designer).exists():

55 <a href="/help/users-levels/">
56 <span class="rb-chip rb-chip--sm rb-chip--light" title="Based on {{ comment.user.points|int_to_abbr }} points">Level {{ comment.user.level }}</span>
57 </a>
58 {% if comment.user.is_admin %}
59 <a href="{% url 'about' %}#roles" title="This user has an Administrator role"><span class="rb-chip rb-chip--sm rb-chip--danger">{{ comment.user.get_rolename.0 }}</span></a>
60 {% elif page.is_moc and page.designer_id == comment.user_id %}
61 <span class="rb-chip rb-chip--sm rb-chip--premium" title="This user designed this MOC">Designed this MOC</span>
62 {% elif comment.user.get_rolename.0 %}

/home/nathan/rb/site/rb_comments/templates/comments/comment.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_subset"."baseset_ptr_id",
       "lego_subset"."parent_set_id",
       "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr",
       T5."id",
       T5."parent_id",
       T5."name",
       T5."slug",
       T5."set_count",
       T5."t1_id",
       T5."t1_name",
       T5."t2_name",
       T5."t3_name",
       T5."lego_blurb",
       T5."banner_img",
       T5."descr",
       T6."id",
       T6."parent_id",
       T6."name",
       T6."slug",
       T6."set_count",
       T6."t1_id",
       T6."t1_name",
       T6."t2_name",
       T6."t3_name",
       T6."lego_blurb",
       T6."banner_img",
       T6."descr",
       "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_subset"
 INNER JOIN
"lego_baseset"
    ON
("lego_subset"."baseset_ptr_id" = "lego_baseset"."id")
 INNER JOIN
"lego_theme"
    ON
("lego_baseset"."theme_id" = "lego_theme"."id")
  LEFT OUTER JOIN
"lego_theme" T5
    ON
("lego_theme"."parent_id" = T5."id")
  LEFT OUTER JOIN
"lego_theme" T6
    ON
(T5."parent_id" = T6."id")
  LEFT OUTER JOIN
"lego_setstatstotal"
    ON
("lego_baseset"."id" = "lego_setstatstotal"."set_id")
 WHERE
("lego_baseset"."is_active" AND "lego_subset"."parent_set_id" = 3100)
SELECT ••• FROM "lego_subset" INNER JOIN "lego_baseset" ON ("lego_subset"."baseset_ptr_id" = "lego_baseset"."id") INNER JOIN "lego_theme" ON ("lego_baseset"."theme_id" = "lego_theme"."id") LEFT OUTER JOIN "lego_theme" T5 ON ("lego_theme"."parent_id" = T5."id") LEFT OUTER JOIN "lego_theme" T6 ON (T5."parent_id" = T6."id") LEFT OUTER JOIN "lego_setstatstotal" ON ("lego_baseset"."id" = "lego_setstatstotal"."set_id") WHERE ("lego_baseset"."is_active" AND "lego_subset"."parent_set_id" = 3100)
2 similar queries. Duplicated 2 times.
0.61

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1866)
  alt_build = self.get_alternate_builds(include_subsets=True)

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds(1464)
  sets = [self] + list(subsets)

92 <div class="tab-pane in" id="tab_alt_builds">
93 <div id="alt_builds_list">
94 {% if is_crawler %}
95 {% get_alternate_builds_tab_html set %}
96 {% endif %}
97 </div>
98 </div>
99 {% endif %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_tabs.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_bmodel"."baseset_ptr_id",
       "lego_bmodel"."parent_set_id",
       "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr",
       T5."id",
       T5."parent_id",
       T5."name",
       T5."slug",
       T5."set_count",
       T5."t1_id",
       T5."t1_name",
       T5."t2_name",
       T5."t3_name",
       T5."lego_blurb",
       T5."banner_img",
       T5."descr",
       T6."id",
       T6."parent_id",
       T6."name",
       T6."slug",
       T6."set_count",
       T6."t1_id",
       T6."t1_name",
       T6."t2_name",
       T6."t3_name",
       T6."lego_blurb",
       T6."banner_img",
       T6."descr",
       "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_bmodel"
 INNER JOIN
"lego_baseset"
    ON
("lego_bmodel"."baseset_ptr_id" = "lego_baseset"."id")
 INNER JOIN
"lego_theme"
    ON
("lego_baseset"."theme_id" = "lego_theme"."id")
  LEFT OUTER JOIN
"lego_theme" T5
    ON
("lego_theme"."parent_id" = T5."id")
  LEFT OUTER JOIN
"lego_theme" T6
    ON
(T5."parent_id" = T6."id")
  LEFT OUTER JOIN
"lego_setstatstotal"
    ON
("lego_baseset"."id" = "lego_setstatstotal"."set_id")
 WHERE
("lego_baseset"."is_active" AND "lego_bmodel"."parent_set_id" = 3100)
SELECT ••• FROM "lego_bmodel" INNER JOIN "lego_baseset" ON ("lego_bmodel"."baseset_ptr_id" = "lego_baseset"."id") INNER JOIN "lego_theme" ON ("lego_baseset"."theme_id" = "lego_theme"."id") LEFT OUTER JOIN "lego_theme" T5 ON ("lego_theme"."parent_id" = T5."id") LEFT OUTER JOIN "lego_theme" T6 ON (T5."parent_id" = T6."id") LEFT OUTER JOIN "lego_setstatstotal" ON ("lego_baseset"."id" = "lego_setstatstotal"."set_id") WHERE ("lego_baseset"."is_active" AND "lego_bmodel"."parent_set_id" = 3100)
0.83

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1869)
  b_models = self.get_b_models()

/home/nathan/rb/site/./lego/models/sets.py in get_b_models(1505)
  sets = sorted(sets, key=lambda x: x.set_num_sorted)

92 <div class="tab-pane in" id="tab_alt_builds">
93 <div id="alt_builds_list">
94 {% if is_crawler %}
95 {% get_alternate_builds_tab_html set %}
96 {% endif %}
97 </div>
98 </div>
99 {% endif %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_tabs.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_subset"."baseset_ptr_id",
       "lego_subset"."parent_set_id",
       "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr",
       T5."id",
       T5."parent_id",
       T5."name",
       T5."slug",
       T5."set_count",
       T5."t1_id",
       T5."t1_name",
       T5."t2_name",
       T5."t3_name",
       T5."lego_blurb",
       T5."banner_img",
       T5."descr",
       T6."id",
       T6."parent_id",
       T6."name",
       T6."slug",
       T6."set_count",
       T6."t1_id",
       T6."t1_name",
       T6."t2_name",
       T6."t3_name",
       T6."lego_blurb",
       T6."banner_img",
       T6."descr",
       "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_subset"
 INNER JOIN
"lego_baseset"
    ON
("lego_subset"."baseset_ptr_id" = "lego_baseset"."id")
 INNER JOIN
"lego_theme"
    ON
("lego_baseset"."theme_id" = "lego_theme"."id")
  LEFT OUTER JOIN
"lego_theme" T5
    ON
("lego_theme"."parent_id" = T5."id")
  LEFT OUTER JOIN
"lego_theme" T6
    ON
(T5."parent_id" = T6."id")
  LEFT OUTER JOIN
"lego_setstatstotal"
    ON
("lego_baseset"."id" = "lego_setstatstotal"."set_id")
 WHERE
("lego_baseset"."is_active" AND "lego_subset"."parent_set_id" = 3100)
SELECT ••• FROM "lego_subset" INNER JOIN "lego_baseset" ON ("lego_subset"."baseset_ptr_id" = "lego_baseset"."id") INNER JOIN "lego_theme" ON ("lego_baseset"."theme_id" = "lego_theme"."id") LEFT OUTER JOIN "lego_theme" T5 ON ("lego_theme"."parent_id" = T5."id") LEFT OUTER JOIN "lego_theme" T6 ON (T5."parent_id" = T6."id") LEFT OUTER JOIN "lego_setstatstotal" ON ("lego_baseset"."id" = "lego_setstatstotal"."set_id") WHERE ("lego_baseset"."is_active" AND "lego_subset"."parent_set_id" = 3100)
2 similar queries. Duplicated 2 times.
0.46

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1870)
  subsets = self.get_sub_sets()

/home/nathan/rb/site/./lego/models/sets.py in get_sub_sets(1510)
  sets = sorted(sets, key=lambda x: x.set_num_sorted)

92 <div class="tab-pane in" id="tab_alt_builds">
93 <div id="alt_builds_list">
94 {% if is_crawler %}
95 {% get_alternate_builds_tab_html set %}
96 {% endif %}
97 </div>
98 </div>
99 {% endif %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_tabs.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested",
       EXISTS(
        SELECT 1 AS "a"
          FROM
"lego_mocswitherrors" U0
         WHERE
(U0."error_type" = 'inventory' AND U0."moc_id" = ("lego_moc"."baseset_ptr_id"))
         LIMIT
1
       ) AS "errors_exists",
       "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr",
       T6."id",
       T6."parent_id",
       T6."name",
       T6."slug",
       T6."set_count",
       T6."t1_id",
       T6."t1_name",
       T6."t2_name",
       T6."t3_name",
       T6."lego_blurb",
       T6."banner_img",
       T6."descr",
       T7."id",
       T7."parent_id",
       T7."name",
       T7."slug",
       T7."set_count",
       T7."t1_id",
       T7."t1_name",
       T7."t2_name",
       T7."t3_name",
       T7."lego_blurb",
       T7."banner_img",
       T7."descr",
       "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors",
       "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent",
       "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly",
       T3."id",
       T3."set_num",
       T3."name",
       T3."year",
       T3."theme_id",
       T3."set_type",
       T3."num_parts",
       T3."default_inventory_id",
       T3."is_active",
       T3."is_accessory",
       T3."added_dt",
       T3."added_by_id",
       T3."last_modified_dt",
       T3."last_modified_by_id",
       T3."active_change_dt",
       T3."active_change_by_id",
       T3."last_checked_for_bi",
       T3."descr",
       T3."primary_photo_id",
       T3."primary_moc_image_id",
       T3."is_gear",
       T3."is_book",
       T3."search_vector",
       T3."mfhash_vector",
       "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 INNER JOIN
"lego_baseset" T3
    ON
("lego_moc"."parent_set_1_id" = T3."id")
 INNER JOIN
"lego_theme"
    ON
("lego_baseset"."theme_id" = "lego_theme"."id")
  LEFT OUTER JOIN
"lego_theme" T6
    ON
("lego_theme"."parent_id" = T6."id")
  LEFT OUTER JOIN
"lego_theme" T7
    ON
(T6."parent_id" = T7."id")
 INNER JOIN
"lego_designer"
    ON
("lego_moc"."designer_id" = "lego_designer"."user_ptr_id")
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
  LEFT OUTER JOIN
"accounts_userplan"
    ON
("auth_user"."id" = "accounts_userplan"."user_id")
  LEFT OUTER JOIN
"plans_plan"
    ON
("accounts_userplan"."plan_id" = "plans_plan"."id")
  LEFT OUTER JOIN
"lego_setstatstotal"
    ON
("lego_baseset"."id" = "lego_setstatstotal"."set_id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."parent_set_1_id" IN (3100) AND "lego_moc"."parent_set_2_id" IS NULL AND "lego_moc"."parent_type" = 'A' AND NOT (EXISTS(SELECT 1 AS "a" FROM "lego_mocswitherrors" U0 WHERE (U0."error_type" = 'inventory' AND U0."moc_id" = ("lego_moc"."baseset_ptr_id")) LIMIT 1)))
 ORDER BY
"lego_setstatstotal"."likes" DESC
SELECT ••• FROM "lego_mocswitherrors" U0 WHERE (U0."error_type" = 'inventory' AND U0."moc_id" = ("lego_moc"."baseset_ptr_id")) LIMIT 1) AS "errors_exists", "lego_theme"."id", "lego_theme"."parent_id", "lego_theme"."name", "lego_theme"."slug", "lego_theme"."set_count", "lego_theme"."t1_id", "lego_theme"."t1_name", "lego_theme"."t2_name", "lego_theme"."t3_name", "lego_theme"."lego_blurb", "lego_theme"."banner_img", "lego_theme"."descr", T6."id", T6."parent_id", T6."name", T6."slug", T6."set_count", T6."t1_id", T6."t1_name", T6."t2_name", T6."t3_name", T6."lego_blurb", T6."banner_img", T6."descr", T7."id", T7."parent_id", T7."name", T7."slug", T7."set_count", T7."t1_id", T7."t1_name", T7."t2_name", T7."t3_name", T7."lego_blurb", T7."banner_img", T7."descr", "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."date_joined", "lego_designer"."user_ptr_id", "lego_designer"."auto_approve", "lego_designer"."num_auto_approved", "lego_designer"."last_checked_for_moc_errors", "accounts_userplan"."user_id", "accounts_userplan"."plan_id", "accounts_userplan"."expiry_date", "accounts_userplan"."last_paid_date", "accounts_userplan"."is_subscription_active", "accounts_userplan"."subscription_period", "accounts_userplan"."payment_source", "accounts_userplan"."stripe_customer_id", "accounts_userplan"."stripe_subscription_id", "accounts_userplan"."paypal_subscription_id", "accounts_userplan"."base_free_plan_id", "accounts_userplan"."is_reminder_sent", "plans_plan"."id", "plans_plan"."type", "plans_plan"."version", "plans_plan"."stripe_id", "plans_plan"."paypal_id", "plans_plan"."cost_single", "plans_plan"."cost_monthly", "plans_plan"."cost_yearly", T3."id", T3."set_num", T3."name", T3."year", T3."theme_id", T3."set_type", T3."num_parts", T3."default_inventory_id", T3."is_active", T3."is_accessory", T3."added_dt", T3."added_by_id", T3."last_modified_dt", T3."last_modified_by_id", T3."active_change_dt", T3."active_change_by_id", T3."last_checked_for_bi", T3."descr", T3."primary_photo_id", T3."primary_moc_image_id", T3."is_gear", T3."is_book", T3."search_vector", T3."mfhash_vector", "lego_setstatstotal"."set_id", "lego_setstatstotal"."hits", "lego_setstatstotal"."builds", "lego_setstatstotal"."likes", "lego_setstatstotal"."bi_downloads", "lego_setstatstotal"."featured_hits", "lego_setstatstotal"."user_hits" FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") INNER JOIN "lego_baseset" T3 ON ("lego_moc"."parent_set_1_id" = T3."id") INNER JOIN "lego_theme" ON ("lego_baseset"."theme_id" = "lego_theme"."id") LEFT OUTER JOIN "lego_theme" T6 ON ("lego_theme"."parent_id" = T6."id") LEFT OUTER JOIN "lego_theme" T7 ON (T6."parent_id" = T7."id") INNER JOIN "lego_designer" ON ("lego_moc"."designer_id" = "lego_designer"."user_ptr_id") INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") LEFT OUTER JOIN "accounts_userplan" ON ("auth_user"."id" = "accounts_userplan"."user_id") LEFT OUTER JOIN "plans_plan" ON ("accounts_userplan"."plan_id" = "plans_plan"."id") LEFT OUTER JOIN "lego_setstatstotal" ON ("lego_baseset"."id" = "lego_setstatstotal"."set_id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."parent_set_1_id" IN (3100) AND "lego_moc"."parent_set_2_id" IS NULL AND "lego_moc"."parent_type" = 'A' AND NOT (EXISTS(SELECT ••• FROM "lego_mocswitherrors" U0 WHERE (U0."error_type" = 'inventory' AND U0."moc_id" = ("lego_moc"."baseset_ptr_id")) LIMIT 1))) ORDER BY "lego_setstatstotal"."likes" DESC
9.01

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1872)
  if len(alt_build) > 0:

92 <div class="tab-pane in" id="tab_alt_builds">
93 <div id="alt_builds_list">
94 {% if is_crawler %}
95 {% get_alternate_builds_tab_html set %}
96 {% endif %}
97 </div>
98 </div>
99 {% endif %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_tabs.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested",
       "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr",
       T9."id",
       T9."parent_id",
       T9."name",
       T9."slug",
       T9."set_count",
       T9."t1_id",
       T9."t1_name",
       T9."t2_name",
       T9."t3_name",
       T9."lego_blurb",
       T9."banner_img",
       T9."descr",
       T10."id",
       T10."parent_id",
       T10."name",
       T10."slug",
       T10."set_count",
       T10."t1_id",
       T10."t1_name",
       T10."t2_name",
       T10."t3_name",
       T10."lego_blurb",
       T10."banner_img",
       T10."descr",
       "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors",
       "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent",
       "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly",
       T4."id",
       T4."set_num",
       T4."name",
       T4."year",
       T4."theme_id",
       T4."set_type",
       T4."num_parts",
       T4."default_inventory_id",
       T4."is_active",
       T4."is_accessory",
       T4."added_dt",
       T4."added_by_id",
       T4."last_modified_dt",
       T4."last_modified_by_id",
       T4."active_change_dt",
       T4."active_change_by_id",
       T4."last_checked_for_bi",
       T4."descr",
       T4."primary_photo_id",
       T4."primary_moc_image_id",
       T4."is_gear",
       T4."is_book",
       T4."search_vector",
       T4."mfhash_vector",
       "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
  LEFT OUTER JOIN
"lego_baseset" T4
    ON
("lego_moc"."parent_set_1_id" = T4."id")
 INNER JOIN
"lego_theme"
    ON
("lego_baseset"."theme_id" = "lego_theme"."id")
  LEFT OUTER JOIN
"lego_theme" T9
    ON
("lego_theme"."parent_id" = T9."id")
  LEFT OUTER JOIN
"lego_theme" T10
    ON
(T9."parent_id" = T10."id")
 INNER JOIN
"lego_designer"
    ON
("lego_moc"."designer_id" = "lego_designer"."user_ptr_id")
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
  LEFT OUTER JOIN
"accounts_userplan"
    ON
("auth_user"."id" = "accounts_userplan"."user_id")
  LEFT OUTER JOIN
"plans_plan"
    ON
("accounts_userplan"."plan_id" = "plans_plan"."id")
  LEFT OUTER JOIN
"lego_setstatstotal"
    ON
("lego_baseset"."id" = "lego_setstatstotal"."set_id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."parent_set_2_id" IS NOT NULL AND "lego_moc"."parent_type" = 'A' AND ("lego_moc"."parent_set_1_id" = 3100 OR "lego_moc"."parent_set_2_id" = 3100 OR "lego_moc"."parent_set_3_id" = 3100 OR "lego_moc"."parent_set_4_id" = 3100 OR "lego_moc"."parent_set_5_id" = 3100))
 ORDER BY
"lego_setstatstotal"."likes" DESC
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") LEFT OUTER JOIN "lego_baseset" T4 ON ("lego_moc"."parent_set_1_id" = T4."id") INNER JOIN "lego_theme" ON ("lego_baseset"."theme_id" = "lego_theme"."id") LEFT OUTER JOIN "lego_theme" T9 ON ("lego_theme"."parent_id" = T9."id") LEFT OUTER JOIN "lego_theme" T10 ON (T9."parent_id" = T10."id") INNER JOIN "lego_designer" ON ("lego_moc"."designer_id" = "lego_designer"."user_ptr_id") INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") LEFT OUTER JOIN "accounts_userplan" ON ("auth_user"."id" = "accounts_userplan"."user_id") LEFT OUTER JOIN "plans_plan" ON ("accounts_userplan"."plan_id" = "plans_plan"."id") LEFT OUTER JOIN "lego_setstatstotal" ON ("lego_baseset"."id" = "lego_setstatstotal"."set_id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."parent_set_2_id" IS NOT NULL AND "lego_moc"."parent_type" = 'A' AND ("lego_moc"."parent_set_1_id" = 3100 OR "lego_moc"."parent_set_2_id" = 3100 OR "lego_moc"."parent_set_3_id" = 3100 OR "lego_moc"."parent_set_4_id" = 3100 OR "lego_moc"."parent_set_5_id" = 3100)) ORDER BY "lego_setstatstotal"."likes" DESC
2.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1874)
  if len(partial_alt_build) > 0:

92 <div class="tab-pane in" id="tab_alt_builds">
93 <div id="alt_builds_list">
94 {% if is_crawler %}
95 {% get_alternate_builds_tab_html set %}
96 {% endif %}
97 </div>
98 </div>
99 {% endif %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_tabs.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested",
       "lego_theme"."id",
       "lego_theme"."parent_id",
       "lego_theme"."name",
       "lego_theme"."slug",
       "lego_theme"."set_count",
       "lego_theme"."t1_id",
       "lego_theme"."t1_name",
       "lego_theme"."t2_name",
       "lego_theme"."t3_name",
       "lego_theme"."lego_blurb",
       "lego_theme"."banner_img",
       "lego_theme"."descr",
       T9."id",
       T9."parent_id",
       T9."name",
       T9."slug",
       T9."set_count",
       T9."t1_id",
       T9."t1_name",
       T9."t2_name",
       T9."t3_name",
       T9."lego_blurb",
       T9."banner_img",
       T9."descr",
       T10."id",
       T10."parent_id",
       T10."name",
       T10."slug",
       T10."set_count",
       T10."t1_id",
       T10."t1_name",
       T10."t2_name",
       T10."t3_name",
       T10."lego_blurb",
       T10."banner_img",
       T10."descr",
       "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors",
       "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent",
       "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly",
       T3."id",
       T3."set_num",
       T3."name",
       T3."year",
       T3."theme_id",
       T3."set_type",
       T3."num_parts",
       T3."default_inventory_id",
       T3."is_active",
       T3."is_accessory",
       T3."added_dt",
       T3."added_by_id",
       T3."last_modified_dt",
       T3."last_modified_by_id",
       T3."active_change_dt",
       T3."active_change_by_id",
       T3."last_checked_for_bi",
       T3."descr",
       T3."primary_photo_id",
       T3."primary_moc_image_id",
       T3."is_gear",
       T3."is_book",
       T3."search_vector",
       T3."mfhash_vector",
       "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
  LEFT OUTER JOIN
"lego_baseset" T3
    ON
("lego_moc"."parent_set_1_id" = T3."id")
 INNER JOIN
"lego_theme"
    ON
("lego_baseset"."theme_id" = "lego_theme"."id")
  LEFT OUTER JOIN
"lego_theme" T9
    ON
("lego_theme"."parent_id" = T9."id")
  LEFT OUTER JOIN
"lego_theme" T10
    ON
(T9."parent_id" = T10."id")
 INNER JOIN
"lego_designer"
    ON
("lego_moc"."designer_id" = "lego_designer"."user_ptr_id")
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
  LEFT OUTER JOIN
"accounts_userplan"
    ON
("auth_user"."id" = "accounts_userplan"."user_id")
  LEFT OUTER JOIN
"plans_plan"
    ON
("accounts_userplan"."plan_id" = "plans_plan"."id")
  LEFT OUTER JOIN
"lego_setstatstotal"
    ON
("lego_baseset"."id" = "lego_setstatstotal"."set_id")
 WHERE
("lego_baseset"."is_active" AND "lego_moc"."parent_type" = 'M' AND ("lego_moc"."parent_set_1_id" = 3100 OR "lego_moc"."parent_set_2_id" = 3100 OR "lego_moc"."parent_set_3_id" = 3100 OR "lego_moc"."parent_set_4_id" = 3100 OR "lego_moc"."parent_set_5_id" = 3100))
 ORDER BY
"lego_setstatstotal"."likes" DESC
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") LEFT OUTER JOIN "lego_baseset" T3 ON ("lego_moc"."parent_set_1_id" = T3."id") INNER JOIN "lego_theme" ON ("lego_baseset"."theme_id" = "lego_theme"."id") LEFT OUTER JOIN "lego_theme" T9 ON ("lego_theme"."parent_id" = T9."id") LEFT OUTER JOIN "lego_theme" T10 ON (T9."parent_id" = T10."id") INNER JOIN "lego_designer" ON ("lego_moc"."designer_id" = "lego_designer"."user_ptr_id") INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") LEFT OUTER JOIN "accounts_userplan" ON ("auth_user"."id" = "accounts_userplan"."user_id") LEFT OUTER JOIN "plans_plan" ON ("accounts_userplan"."plan_id" = "plans_plan"."id") LEFT OUTER JOIN "lego_setstatstotal" ON ("lego_baseset"."id" = "lego_setstatstotal"."set_id") WHERE ("lego_baseset"."is_active" AND "lego_moc"."parent_type" = 'M' AND ("lego_moc"."parent_set_1_id" = 3100 OR "lego_moc"."parent_set_2_id" = 3100 OR "lego_moc"."parent_set_3_id" = 3100 OR "lego_moc"."parent_set_4_id" = 3100 OR "lego_moc"."parent_set_5_id" = 3100)) ORDER BY "lego_setstatstotal"."likes" DESC
2.20

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1876)
  if len(moc_mods) > 0:

92 <div class="tab-pane in" id="tab_alt_builds">
93 <div id="alt_builds_list">
94 {% if is_crawler %}
95 {% get_alternate_builds_tab_html set %}
96 {% endif %}
97 </div>
98 </div>
99 {% endif %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_tabs.html

SELECT DISTINCT ("taggit_taggeditem"."object_id") AS "_prefetch_related_val",
       "taggit_tag"."id",
       "taggit_tag"."name",
       "taggit_tag"."slug"
  FROM
"taggit_tag"
 INNER JOIN
"taggit_taggeditem"
    ON
("taggit_tag"."id" = "taggit_taggeditem"."tag_id")
 INNER JOIN
"django_content_type"
    ON
("taggit_taggeditem"."content_type_id" = "django_content_type"."id")
 WHERE
("django_content_type"."app_label" = 'lego' AND "django_content_type"."model" = 'moc' AND "taggit_taggeditem"."object_id" IN (75586, 18970, 83933, 146982))
SELECT ••• FROM "taggit_tag" INNER JOIN "taggit_taggeditem" ON ("taggit_tag"."id" = "taggit_taggeditem"."tag_id") INNER JOIN "django_content_type" ON ("taggit_taggeditem"."content_type_id" = "django_content_type"."id") WHERE ("django_content_type"."app_label" = 'lego' AND "django_content_type"."model" = 'moc' AND "taggit_taggeditem"."object_id" IN (75586, 18970, 83933, 146982))
0.34

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1876)
  if len(moc_mods) > 0:

92 <div class="tab-pane in" id="tab_alt_builds">
93 <div id="alt_builds_list">
94 {% if is_crawler %}
95 {% get_alternate_builds_tab_html set %}
96 {% endif %}
97 </div>
98 </div>
99 {% endif %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_main_tabs.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 365238
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 365238 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.27

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 29374)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 29374) LIMIT 1
327 similar queries.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 385702
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 385702 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458) LIMIT 21
277 similar queries. Duplicated 9 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13899)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13899) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 320483
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 320483 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 73817)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 73817) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 342373
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 342373 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49294)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49294) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 320515
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 320515 LIMIT 21
334 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 73798)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 73798) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 368554
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 368554 LIMIT 21
334 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25068)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25068) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 376191
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 376191 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 19367)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 19367) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 387869
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 387869 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 12721)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 12721) LIMIT 1
327 similar queries.
5.93

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 286782
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 286782 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 95070)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 95070) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 358465
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 358465 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 35906)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 35906) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 376459
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 376459 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 19159)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 19159) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 31582
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 31582 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49562)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49562) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 364120
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 364120 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 30801)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 30801) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 366843
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 366843 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 27345)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 27345) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 356610
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 356610 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 37585)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 37585) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 348234
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 348234 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 45115)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 45115) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 350736
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 350736 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 43212)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 43212) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 377871
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 377871 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165) LIMIT 21
277 similar queries. Duplicated 8 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 18011)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 18011) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 336833
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 336833 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 60927)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 60927) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 24105
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 24105 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 67809)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 67809) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 385594
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 385594 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458) LIMIT 21
277 similar queries. Duplicated 9 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13924)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13924) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 367238
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 367238 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 26467)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 26467) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 385390
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 385390 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458) LIMIT 21
277 similar queries. Duplicated 9 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13997)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13997) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 364413
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 364413 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 30393)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 30393) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 368542
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 368542 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25080)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25080) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 321538
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 321538 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 73078)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 73078) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 385685
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 385685 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458) LIMIT 21
277 similar queries. Duplicated 9 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13906)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13906) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 325492
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 325492 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 70525)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 70525) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 367997
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 367997 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25579)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25579) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 368088
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 368088 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25496)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25496) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 317451
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 317451 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 75787)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 75787) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 353674
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 353674 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 40572)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 40572) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 328415
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 328415 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68571)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68571) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 312253
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 312253 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 78888)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 78888) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 358949
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 358949 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 35477)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 35477) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 352155
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 352155 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 41750)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 41750) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 368534
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 368534 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25094)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25094) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 349647
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 349647 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 44035)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 44035) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 378093
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 378093 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165) LIMIT 21
277 similar queries. Duplicated 8 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 17883)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 17883) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 323156
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 323156 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 72090)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 72090) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 383881
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 383881 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458) LIMIT 21
277 similar queries. Duplicated 9 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 14689)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 14689) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 21463
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 21463 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71461)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71461) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 385376
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 385376 LIMIT 21
334 similar queries.
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458) LIMIT 21
277 similar queries. Duplicated 9 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 14004)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 14004) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 385692
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 385692 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458) LIMIT 21
277 similar queries. Duplicated 9 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13905)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13905) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 373261
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 373261 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165) LIMIT 21
277 similar queries. Duplicated 8 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 21349)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 21349) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 329758
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 329758 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 67831)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 67831) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 376501
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 376501 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165) LIMIT 21
277 similar queries. Duplicated 8 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 19135)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 19135) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 9938
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 9938 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49164)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49164) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 377895
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 377895 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165) LIMIT 21
277 similar queries. Duplicated 8 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 18002)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 18002) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 385629
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 385629 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458) LIMIT 21
277 similar queries. Duplicated 9 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13919)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13919) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 368561
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 368561 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25067)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25067) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 364184
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 364184 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 30727)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 30727) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 368353
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 368353 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25306)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25306) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 382841
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 382841 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 41458) LIMIT 21
277 similar queries. Duplicated 9 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 15080)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 15080) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 338030
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 338030 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 59504)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 59504) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 368081
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 368081 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25499)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25499) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 355335
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 355335 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 39288)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 39288) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 359116
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 359116 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 35354)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 35354) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 378071
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 378071 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165) LIMIT 21
277 similar queries. Duplicated 8 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 17902)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 17902) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 57625
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 57625 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68179)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68179) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 368318
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 368318 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25338)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25338) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 378100
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 378100 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165) LIMIT 21
277 similar queries. Duplicated 8 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 17875)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 17875) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 377888
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 377888 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 99165) LIMIT 21
277 similar queries. Duplicated 8 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 18005)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 18005) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 366175
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 366175 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 28230)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 28230) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 26125
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 26125 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48659)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48659) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 343304
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 343304 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48631)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48631) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 387865
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 387865 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 12722)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 12722) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 364731
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 364731 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 29979)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 29979) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 68745
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 68745 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49564)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49564) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 368342
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 368342 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25320)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25320) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 368480
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 368480 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25197)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 25197) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 294912
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 294912 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 90159)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 90159) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 27163
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 27163 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71462)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71462) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38085
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38085 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63357)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63357) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35655
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35655 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49639)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49639) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 374927
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 374927 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 20310)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 20310) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36328
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36328 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71464)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71464) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39224
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39224 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71465)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71465) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39100
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39100 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49447)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49447) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 30193
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 30193 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48607)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48607) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37449
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37449 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49638)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49638) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35652
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35652 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63356)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63356) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38835
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38835 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61084)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61084) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39174
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39174 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77161)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77161) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38343
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38343 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61095)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61095) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 282575
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 282575 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 97578)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 97578) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 272152
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 272152 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 103765)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 103765) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 378333
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 378333 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 17720)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 17720) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34546
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34546 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 56604)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 56604) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38079
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38079 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61100)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61100) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38832
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38832 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49568)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49568) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 26158
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 26158 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68096)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68096) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35309
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35309 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61087)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61087) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 366137
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 366137 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 28280)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 28280) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39099
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39099 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49438)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49438) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35102
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35102 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61077)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61077) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37446
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37446 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77156)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77156) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38960
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38960 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61090)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61090) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39029
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39029 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49454)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49454) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36327
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36327 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 47108)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 47108) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 20780
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 20780 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48601)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48601) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35649
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35649 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49442)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49442) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38341
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38341 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48929)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48929) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34118
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34118 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63347)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63347) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 376578
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 376578 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 19072)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 19072) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35942
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35942 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48650)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48650) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33977
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33977 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 15244)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 15244) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38830
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38830 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71463)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71463) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39097
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39097 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63348)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63348) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36635
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36635 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 76506)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 76506) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34544
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34544 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48768)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48768) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 316677
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 316677 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 76191)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 76191) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38959
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38959 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48928)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48928) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37445
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37445 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48651)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48651) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38338
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38338 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63355)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63355) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38958
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38958 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68052)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68052) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36323
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36323 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 86504)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 86504) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39096
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39096 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77165)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77165) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 6301
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 6301 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77171)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77171) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35100
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35100 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63354)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63354) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 4280
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 4280 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48924)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48924) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 28864
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 28864 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68050)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68050) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38334
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38334 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49563)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49563) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38822
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38822 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 88766)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 88766) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 4232
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 4232 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63346)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63346) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35001
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35001 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49627)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49627) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 26227
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 26227 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 47001)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 47001) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 321020
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 321020 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 73438)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 73438) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38327
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38327 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63351)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63351) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37429
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37429 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13221)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13221) LIMIT 1
327 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35402
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35402 LIMIT 21
334 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 202813)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 202813) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35205
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35205 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63345)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 63345) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38328
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38328 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48769)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48769) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38330
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38330 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49203)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49203) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38828
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38828 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71460)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71460) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33654
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33654 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 97546)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 97546) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37442
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37442 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48932)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48932) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35203
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35203 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 76613)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 76613) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39023
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39023 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49640)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49640) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35648
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35648 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71459)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 71459) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 16814
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 16814 LIMIT 21
334 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49208)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49208) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 68414
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 68414 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 18848)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 18848) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39024
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39024 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49207)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49207) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39173
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39173 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49206)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49206) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39025
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39025 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48925)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48925) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 29899
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 29899 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77177)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77177) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37441
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37441 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61078)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61078) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35940
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35940 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61079)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61079) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37443
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37443 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61088)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61088) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39139
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39139 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49641)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49641) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35353
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35353 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49209)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49209) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38076
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38076 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77181)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77181) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34704
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34704 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48649)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48649) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35198
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35198 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77464)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77464) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35259
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35259 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61081)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61081) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 370926
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 370926 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 23301)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 23301) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35202
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35202 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48931)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48931) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36324
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36324 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13206)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13206) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38818
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38818 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61089)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61089) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35404
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35404 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61082)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61082) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38320
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38320 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49204)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49204) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 29209
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 29209 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61099)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61099) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 4430
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 4430 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 109104)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 109104) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 26197
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 26197 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77164)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77164) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 30656
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 30656 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77463)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77463) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35647
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35647 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61080)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61080) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38072
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38072 LIMIT 21
334 similar queries.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61083)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61083) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33759
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33759 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77461)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77461) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 238136
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 238136 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 129468)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 129468) LIMIT 21
277 similar queries. Duplicated 2 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 122608)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 122608) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34646
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34646 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48933)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48933) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 22860
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 22860 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77162)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77162) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37440
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37440 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77186)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77186) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 12944
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 12944 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77170)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77170) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39021
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39021 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48927)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 48927) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 282324
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 282324 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 97706)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 97706) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35939
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35939 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61092)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 61092) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 341846
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 341846 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49645)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49645) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35645
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35645 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77160)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77160) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36318
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36318 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77184)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77184) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33791
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33791 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77166)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77166) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38071
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38071 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49205)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49205) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 30296
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 30296 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68321)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 68321) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 66796
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 66796 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13812)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13812) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 31280
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 31280 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77163)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77163) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38054
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38054 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 98729)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 98729) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35000
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35000 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77462)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77462) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37439
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37439 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77191)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77191) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35646
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35646 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 18941)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 18941) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34644
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34644 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77460)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77460) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 14247
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 14247 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77173)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77173) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38049
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38049 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 40501)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 40501) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35303
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35303 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77174)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77174) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38319
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38319 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77179)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77179) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38316
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38316 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77175)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 77175) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 847807
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 847807 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 1716754)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 1716754) LIMIT 21
277 similar queries. Duplicated 2 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 318955)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 318955) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 61434
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 61434 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 195599)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 195599) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37438
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37438 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 177974)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 177974) LIMIT 1
327 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 29938
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 29938 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 99083)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 99083) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 383217
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 383217 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 14963)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 14963) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37436
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37436 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 98727)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 98727) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 420995
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 420995 LIMIT 21
334 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 823339)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 823339) LIMIT 21
277 similar queries. Duplicated 2 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 232172)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 232172) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 26417
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 26417 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160385)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160385) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 421084
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 421084 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 823339)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 823339) LIMIT 21
277 similar queries. Duplicated 2 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 232185)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 232185) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36317
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36317 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 96121)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 96121) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33871
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33871 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161339)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161339) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 142003
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 142003 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 178285)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 178285) LIMIT 1
327 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 219189
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 219189 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 133254)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 133254) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35195
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35195 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164063)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164063) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39098
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39098 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160186)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160186) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33907
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33907 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 132257)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 132257) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34542
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34542 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164487)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164487) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35400
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35400 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165015)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165015) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33863
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33863 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160499)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160499) LIMIT 1
327 similar queries.
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 210611
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 210611 LIMIT 21
334 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 138483)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 138483) LIMIT 1
327 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34641
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34641 LIMIT 21
334 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159875)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159875) LIMIT 1
327 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34698
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34698 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159869)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159869) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 820584
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 820584 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 314412)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 314412) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37435
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37435 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165024)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165024) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34694
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34694 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163956)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163956) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 29719
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 29719 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161500)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161500) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37434
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37434 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160680)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160680) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35301
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35301 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163950)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163950) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34751
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34751 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159862)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159862) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38310
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38310 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161368)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161368) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 196290
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 196290 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 145797)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 145797) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38042
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38042 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165002)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165002) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33782
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33782 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160364)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160364) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38314
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38314 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161116)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161116) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35399
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35399 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161107)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161107) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 31463
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 31463 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164446)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164446) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38046
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38046 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 205543)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 205543) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38956
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38956 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161340)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161340) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34999
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34999 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159860)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159860) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35644
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35644 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 140698)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 140698) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38306
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38306 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160675)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160675) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36303
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36303 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165003)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165003) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 107752
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 107752 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 198742)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 198742) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35300
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35300 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 162977)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 162977) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39019
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39019 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161347)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161347) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35938
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35938 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161097)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161097) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38811
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38811 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161091)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161091) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38308
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38308 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161364)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161364) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36314
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36314 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160671)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160671) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35398
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35398 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160500)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160500) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35193
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35193 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160374)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160374) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38313
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38313 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165008)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165008) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 103638
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 103638 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 201742)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 201742) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34995
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34995 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164997)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164997) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34989
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34989 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164447)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164447) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38303
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38303 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160669)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160669) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37431
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37431 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160678)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160678) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34696
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34696 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163947)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163947) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37428
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37428 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161111)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161111) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34997
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34997 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159521)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159521) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35643
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35643 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163079)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163079) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39093
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39093 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161356)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161356) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38955
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38955 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161099)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161099) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35189
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35189 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163969)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163969) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35191
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35191 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160664)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160664) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36309
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36309 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164444)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164444) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39138
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39138 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160501)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160501) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35097
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35097 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160372)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160372) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33974
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33974 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160659)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160659) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34749
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34749 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163081)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163081) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34639
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34639 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159516)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 159516) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38301
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38301 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163949)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163949) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35936
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35936 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165010)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165010) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36311
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36311 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165013)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165013) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33789
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33789 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161098)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161098) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37427
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37427 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161090)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161090) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35297
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35297 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 199524)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 199524) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 2160
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 2160 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160658)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160658) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39018
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39018 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164477)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164477) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35397
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35397 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164445)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164445) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35295
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35295 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165004)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165004) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35293
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35293 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160380)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 160380) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38299
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38299 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161104)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161104) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39014
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39014 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164475)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164475) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34992
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34992 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161105)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161105) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39016
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39016 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163946)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163946) LIMIT 1
327 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39092
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39092 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163945)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163945) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35188
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35188 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165011)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165011) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35291
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35291 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164996)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164996) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36306
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36306 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165016)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165016) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35187
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35187 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164479)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164479) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38297
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38297 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164474)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164474) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 9680
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 9680 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165005)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165005) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36310
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36310 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164485)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164485) LIMIT 1
327 similar queries.
0.18

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38294
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38294 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165001)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165001) LIMIT 1
327 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38293
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38293 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163948)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163948) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39011
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39011 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161106)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161106) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39012
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39012 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165017)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165017) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 17575
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 17575 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165009)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165009) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 806345
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 806345 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 311711)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 311711) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35186
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35186 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161093)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161093) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 107065
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 107065 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 199144)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 199144) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36305
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36305 LIMIT 21
334 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164995)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164995) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39008
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39008 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.16

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163080)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163080) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35095
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35095 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.15

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164994)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164994) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35395
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35395 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163944)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 163944) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37422
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37422 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161361)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161361) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34695
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34695 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164478)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164478) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34747
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34747 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164999)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164999) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 36300
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 36300 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165007)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165007) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35287
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35287 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165014)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165014) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39010
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39010 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161092)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161092) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 38039
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 38039 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164993)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164993) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 29892
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 29892 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164453)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164453) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 39091
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 39091 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164991)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164991) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34988
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34988 LIMIT 21
334 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164992)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164992) LIMIT 1
327 similar queries.
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 37420
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 37420 LIMIT 21
334 similar queries.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161094)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 161094) LIMIT 1
327 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35934
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35934 LIMIT 21
334 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165006)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 165006) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 667541
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 667541 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 283546)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 283546) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 34748
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 34748 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 339136) LIMIT 21
277 similar queries. Duplicated 204 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164998)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 164998) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 791864
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 791864 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 308562)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 308562) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 361993
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 361993 LIMIT 21
334 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 32811)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 32811) LIMIT 1
327 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 381582
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 381582 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 82556) LIMIT 21
277 similar queries. Duplicated 50 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 15623)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 15623) LIMIT 1
327 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 33712
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 33712 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49628)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 49628) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35183
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35183 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 90544)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 90544) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 134806
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 134806 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_usersetting"."id",
       "accounts_usersetting"."user_id",
       "accounts_usersetting"."name",
       "accounts_usersetting"."value"
  FROM
"accounts_usersetting"
 WHERE
("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 129468)
 LIMIT
21
SELECT ••• FROM "accounts_usersetting" WHERE ("accounts_usersetting"."name" = 'privacy' AND "accounts_usersetting"."user_id" = 129468) LIMIT 21
277 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./accounts/models/user_extras.py in is_public_plan(670)
  return self.get_privacy_option('is_public_plan')

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_option(285)
  options = self.get_privacy_options()

/home/nathan/rb/site/./accounts/models/user_extras.py in get_privacy_options(279)
  options = UserSetting.objects.get(user=self, name=UserSetting.USER_SETTING_PRIVACY_OPTIONS)

88 <div class="moc-author trunc mb-6 size-12">
89 {% if set|get_class == 'Moc' %}
90 By <a href="{% url 'user_mocs' set.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.designer.username %}">{{ set.designer.username }}</a>
91 {% if not set.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.designer.to_proxy.get_plan_html }}{% endif %}
92 {% elif set|get_class == 'PendingMoc' and set.pendingmoc %}
93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 182595)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 182595) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35180
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35180 LIMIT 21
334 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 376655
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 376655 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 35933
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 35933 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 193832
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 193832 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 27739
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 27739 LIMIT 21
13 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

14 {% include 'sets/render_set.html' with set=set title=set.name hide_details=True tn_options=settings.THUMBS_OPTIONS_MOC_TILE %}
15 </div>
16 {% else %}
17 <div class="col-xs-6 col-sm-4 col-md-3 col-condensed">{% render_set set tn_options=settings.THUMBS_OPTIONS_SET_TILE %}</div>
18 {% endif %}
19 {% endfor %}
20 </div>
21 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_alt_build_list.html

SELECT "lego_setphoto"."id",
       "lego_setphoto"."set_id",
       "lego_setphoto"."photo_type_id",
       "lego_setphoto"."submitted_by_id",
       "lego_setphoto"."timestamp",
       "lego_setphoto"."is_active",
       "lego_setphoto"."is_primary"
  FROM
"lego_setphoto"
 WHERE
"lego_setphoto"."id" = 5684
 LIMIT
21
SELECT ••• FROM "lego_setphoto" WHERE "lego_setphoto"."id" = 5684 LIMIT 21
4 similar queries.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(785)
  file_dir = self.primary_photo.get_img_dir()

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 27801
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 27801 LIMIT 21
12 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(785)
  file_dir = self.primary_photo.get_img_dir()

/home/nathan/rb/site/./lego/models/sets.py in get_img_dir(3210)
  return os.path.join('sets', self.set.set_num.lower(), str(self.id) + '.jpg')

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 27741
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 27741 LIMIT 21
13 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

14 {% include 'sets/render_set.html' with set=set title=set.name hide_details=True tn_options=settings.THUMBS_OPTIONS_MOC_TILE %}
15 </div>
16 {% else %}
17 <div class="col-xs-6 col-sm-4 col-md-3 col-condensed">{% render_set set tn_options=settings.THUMBS_OPTIONS_SET_TILE %}</div>
18 {% endif %}
19 {% endfor %}
20 </div>
21 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_alt_build_list.html

SELECT "lego_setphoto"."id",
       "lego_setphoto"."set_id",
       "lego_setphoto"."photo_type_id",
       "lego_setphoto"."submitted_by_id",
       "lego_setphoto"."timestamp",
       "lego_setphoto"."is_active",
       "lego_setphoto"."is_primary"
  FROM
"lego_setphoto"
 WHERE
"lego_setphoto"."id" = 5683
 LIMIT
21
SELECT ••• FROM "lego_setphoto" WHERE "lego_setphoto"."id" = 5683 LIMIT 21
4 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(785)
  file_dir = self.primary_photo.get_img_dir()

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 27803
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 27803 LIMIT 21
12 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in get_alternate_builds_tab_html(283)
  return set.get_alternate_builds_tab_html(context['request'])[0]

/home/nathan/rb/site/./lego/models/sets.py in get_alternate_builds_tab_html(1902)
  html = render_to_string('sets/render_alt_build_list.html', context, request=request)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(785)
  file_dir = self.primary_photo.get_img_dir()

/home/nathan/rb/site/./lego/models/sets.py in get_img_dir(3210)
  return os.path.join('sets', self.set.set_num.lower(), str(self.id) + '.jpg')

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_setinstructions"."id",
       "lego_setinstructions"."set_id",
       "lego_setinstructions"."timestamp",
       "lego_setinstructions"."descr",
       "lego_setinstructions"."file_size",
       "lego_setinstructions"."preview_img",
       "lego_setinstructions"."is_alt",
       "lego_setinstructions"."lego_url",
       "lego_setinstructions"."file_id"
  FROM
"lego_setinstructions"
 WHERE
"lego_setinstructions"."set_id" = 3100
 ORDER BY
"lego_setinstructions"."descr" ASC
SELECT ••• FROM "lego_setinstructions" WHERE "lego_setinstructions"."set_id" = 3100 ORDER BY "lego_setinstructions"."descr" ASC
0.21

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

7 <p>The known <a href="{% url 'set_instructions' set.set_num %}">building instruction files</a> for <a href="{{ set.get_absolute_url }}">{{ set }}</a> are listed below.</p>
8
9 <div class="display-flex">
10 {% for bi in set.instructions.all %}
11 <div class="xflex-1 xcol-sm-3 mb-10 min-height-250 p-10" style="width:25%">
12 <a href="{{ bi.get_download_url }}" target="_blank">
13 {% thumbs bi.get_preview_img settings.THUMBS_OPTIONS_SET_BI_TILE as img %}
14 <img class="img-responsive" {% if not part.no_lazy %}src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-{% endif %}src="{% cachebuster img.url %}" width="{{ img.width }}" height="{{ img.height }}" title="{{ bi.descr }}" alt="LEGO Building Instructions for {{ set }} - {{ bi.descr }}">

/home/nathan/rb/site/lego/templates/sets/includes/render_set_bi_list.html

SELECT "lego_files_s3file"."id",
       "lego_files_s3file"."file_size",
       "lego_files_s3file"."last_modified",
       "lego_files_s3file"."aws_mi_file",
       "lego_files_s3file"."linode_si_file",
       "lego_files_s3file"."linode_mi_file",
       "lego_files_s3file"."linode_media_file"
  FROM
"lego_files_s3file"
 WHERE
"lego_files_s3file"."id" = 38083
 LIMIT
21
SELECT ••• FROM "lego_files_s3file" WHERE "lego_files_s3file"."id" = 38083 LIMIT 21
2 similar queries.
0.27

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/models/sets.py in get_download_url(3161)
  if self.file:

9 <div class="display-flex">
10 {% for bi in set.instructions.all %}
11 <div class="xflex-1 xcol-sm-3 mb-10 min-height-250 p-10" style="width:25%">
12 <a href="{{ bi.get_download_url }}" target="_blank">
13 {% thumbs bi.get_preview_img settings.THUMBS_OPTIONS_SET_BI_TILE as img %}
14 <img class="img-responsive" {% if not part.no_lazy %}src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-{% endif %}src="{% cachebuster img.url %}" width="{{ img.width }}" height="{{ img.height }}" title="{{ bi.descr }}" alt="LEGO Building Instructions for {{ set }} - {{ bi.descr }}">
15 <br><span class="" title="{{ bi.descr }}">{{ bi.descr }}</span>
16 {% if bi.is_alt %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_bi_list.html

SELECT "lego_files_s3file"."id",
       "lego_files_s3file"."file_size",
       "lego_files_s3file"."last_modified",
       "lego_files_s3file"."aws_mi_file",
       "lego_files_s3file"."linode_si_file",
       "lego_files_s3file"."linode_mi_file",
       "lego_files_s3file"."linode_media_file"
  FROM
"lego_files_s3file"
 WHERE
"lego_files_s3file"."id" = 38084
 LIMIT
21
SELECT ••• FROM "lego_files_s3file" WHERE "lego_files_s3file"."id" = 38084 LIMIT 21
2 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/models/sets.py in get_download_url(3161)
  if self.file:

9 <div class="display-flex">
10 {% for bi in set.instructions.all %}
11 <div class="xflex-1 xcol-sm-3 mb-10 min-height-250 p-10" style="width:25%">
12 <a href="{{ bi.get_download_url }}" target="_blank">
13 {% thumbs bi.get_preview_img settings.THUMBS_OPTIONS_SET_BI_TILE as img %}
14 <img class="img-responsive" {% if not part.no_lazy %}src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-{% endif %}src="{% cachebuster img.url %}" width="{{ img.width }}" height="{{ img.height }}" title="{{ bi.descr }}" alt="LEGO Building Instructions for {{ set }} - {{ bi.descr }}">
15 <br><span class="" title="{{ bi.descr }}">{{ bi.descr }}</span>
16 {% if bi.is_alt %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_bi_list.html

SELECT (width*height) AS "area",
       "ads_banner"."id",
       "ads_banner"."width",
       "ads_banner"."height",
       "ads_banner"."start_date",
       "ads_banner"."end_date",
       "ads_banner"."country_code",
       "ads_banner"."html"
  FROM
"ads_banner"
 WHERE
("ads_banner"."start_date" < '2026-11-16T00:44:24.963145+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:24.963221+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:24.963128+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:24.963346+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US')
SELECT ••• FROM "ads_banner" WHERE ("ads_banner"."start_date" < '2026-11-16T00:44:24.963145+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:24.963221+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:24.963128+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:24.963346+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US')
3 similar queries.
2.77

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./ads/templatetags/ads/drawing.py in render_banner(291)
  if not banners:

193 {% endcache %}
194
195 {# cant include banner in cache as it's region specific #}
196 {% render_banner 262 350 0 %}
197
198 {% cache cache_timeout 'set_sidebar_top_other_bit' user.is_authenticated set.id %}
199 {% if request.user.is_authenticated and not set.is_pending %}
200 {% if not set.is_figure %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT (width*height) AS "area",
       "ads_banner"."id",
       "ads_banner"."width",
       "ads_banner"."height",
       "ads_banner"."start_date",
       "ads_banner"."end_date",
       "ads_banner"."country_code",
       "ads_banner"."html"
  FROM
"ads_banner"
 WHERE
("ads_banner"."start_date" < '2026-11-16T00:44:24.963145+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:24.963221+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:24.963128+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:24.963346+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US')
 ORDER BY
1 DESC, RANDOM() ASC
 LIMIT
1
SELECT ••• FROM "ads_banner" WHERE ("ads_banner"."start_date" < '2026-11-16T00:44:24.963145+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:24.963221+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:24.963128+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:24.963346+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US') ORDER BY 1 DESC, RANDOM() ASC LIMIT 1
3 similar queries.
1.34

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./ads/templatetags/ads/drawing.py in render_banner(298)
  banner = banners.order_by('-area', '?')[0]

193 {% endcache %}
194
195 {# cant include banner in cache as it's region specific #}
196 {% render_banner 262 350 0 %}
197
198 {% cache cache_timeout 'set_sidebar_top_other_bit' user.is_authenticated set.id %}
199 {% if request.user.is_authenticated and not set.is_pending %}
200 {% if not set.is_figure %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_top.html

SELECT "lego_baseset"."id",
       "lego_baseset"."default_inventory_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 40386
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 40386 LIMIT 21
10 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 40386
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 40386 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 40993
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 40993 LIMIT 21
13 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 40386
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 40386 LIMIT 21
11 similar queries.
0.14

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

27 data-variant="{{ set.variant }}"
28 data-added="{{ set.added_dt|date_to_epoch }}"
29 {% if set.is_moc %}
30 data-likes="{{ set.stats.likes }}"
31 {% endif %}
32 {% if set.custom_sort %}
33 data-custom_sort="{{ set.custom_sort }}"
34 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_moc"."baseset_ptr_id" = 40386
 LIMIT
21
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_moc"."baseset_ptr_id" = 40386 LIMIT 21
10 similar queries.
0.33

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/sets.py in get_moc(870)
  elif hasattr(self, 'moc'):

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 82556
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 82556 LIMIT 21
18 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/mocs.py in get_absolute_url(840)
  url = "/mocs/{0}/{1}/{2}/".format(self.set_num, parse.quote(self.designer.username, safe=''), slug)

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."primary_moc_image_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 40386
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 40386 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 40386
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 40386 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 353953
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 353953 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent"
  FROM
"accounts_userplan"
 WHERE
"accounts_userplan"."user_id" = 82556
 LIMIT
21
SELECT ••• FROM "accounts_userplan" WHERE "accounts_userplan"."user_id" = 82556 LIMIT 21
10 similar queries.
0.10

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly"
  FROM
"plans_plan"
 WHERE
"plans_plan"."id" = 2
 LIMIT
21
SELECT ••• FROM "plans_plan" WHERE "plans_plan"."id" = 2 LIMIT 21
10 similar queries. Duplicated 2 times.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./accounts/models/users.py in is_free(512)
  return self.plan.is_free()

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 40386)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 40386) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 8437
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 8437 LIMIT 21
12 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}
187 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."default_inventory_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 13380
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 13380 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 13380
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 13380 LIMIT 21
20 similar queries. Duplicated 2 times.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 6935
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 6935 LIMIT 21
13 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 13380
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 13380 LIMIT 21
11 similar queries.
0.11

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

27 data-variant="{{ set.variant }}"
28 data-added="{{ set.added_dt|date_to_epoch }}"
29 {% if set.is_moc %}
30 data-likes="{{ set.stats.likes }}"
31 {% endif %}
32 {% if set.custom_sort %}
33 data-custom_sort="{{ set.custom_sort }}"
34 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_moc"."baseset_ptr_id" = 13380
 LIMIT
21
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_moc"."baseset_ptr_id" = 13380 LIMIT 21
10 similar queries.
0.17

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/sets.py in get_moc(870)
  elif hasattr(self, 'moc'):

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 26393
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 26393 LIMIT 21
18 similar queries. Duplicated 2 times.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/mocs.py in get_absolute_url(840)
  url = "/mocs/{0}/{1}/{2}/".format(self.set_num, parse.quote(self.designer.username, safe=''), slug)

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."primary_moc_image_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 13380
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 13380 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 13380
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 13380 LIMIT 21
20 similar queries. Duplicated 2 times.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 386935
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 386935 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent"
  FROM
"accounts_userplan"
 WHERE
"accounts_userplan"."user_id" = 26393
 LIMIT
21
SELECT ••• FROM "accounts_userplan" WHERE "accounts_userplan"."user_id" = 26393 LIMIT 21
10 similar queries. Duplicated 2 times.
0.11

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly"
  FROM
"plans_plan"
 WHERE
"plans_plan"."id" = 4
 LIMIT
21
SELECT ••• FROM "plans_plan" WHERE "plans_plan"."id" = 4 LIMIT 21
10 similar queries. Duplicated 4 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./accounts/models/users.py in is_free(512)
  return self.plan.is_free()

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13380)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 13380) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 11197
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 11197 LIMIT 21
12 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}
187 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."default_inventory_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 40421
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 40421 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 40421
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 40421 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 41029
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 41029 LIMIT 21
13 similar queries.
0.14

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 40421
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 40421 LIMIT 21
11 similar queries.
0.15

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

27 data-variant="{{ set.variant }}"
28 data-added="{{ set.added_dt|date_to_epoch }}"
29 {% if set.is_moc %}
30 data-likes="{{ set.stats.likes }}"
31 {% endif %}
32 {% if set.custom_sort %}
33 data-custom_sort="{{ set.custom_sort }}"
34 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_moc"."baseset_ptr_id" = 40421
 LIMIT
21
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_moc"."baseset_ptr_id" = 40421 LIMIT 21
10 similar queries.
0.34

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/sets.py in get_moc(870)
  elif hasattr(self, 'moc'):

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 235105
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 235105 LIMIT 21
18 similar queries.
0.13

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/mocs.py in get_absolute_url(840)
  url = "/mocs/{0}/{1}/{2}/".format(self.set_num, parse.quote(self.designer.username, safe=''), slug)

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."primary_moc_image_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 40421
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 40421 LIMIT 21
10 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 40421
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 40421 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 1001381
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 1001381 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent"
  FROM
"accounts_userplan"
 WHERE
"accounts_userplan"."user_id" = 235105
 LIMIT
21
SELECT ••• FROM "accounts_userplan" WHERE "accounts_userplan"."user_id" = 235105 LIMIT 21
10 similar queries.
0.12

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly"
  FROM
"plans_plan"
 WHERE
"plans_plan"."id" = 4
 LIMIT
21
SELECT ••• FROM "plans_plan" WHERE "plans_plan"."id" = 4 LIMIT 21
10 similar queries. Duplicated 4 times.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./accounts/models/users.py in is_free(512)
  return self.plan.is_free()

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."default_inventory_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 176644
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 176644 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 176644
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 176644 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 180277
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 180277 LIMIT 21
13 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 176644
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 176644 LIMIT 21
11 similar queries.
0.12

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

27 data-variant="{{ set.variant }}"
28 data-added="{{ set.added_dt|date_to_epoch }}"
29 {% if set.is_moc %}
30 data-likes="{{ set.stats.likes }}"
31 {% endif %}
32 {% if set.custom_sort %}
33 data-custom_sort="{{ set.custom_sort }}"
34 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_moc"."baseset_ptr_id" = 176644
 LIMIT
21
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_moc"."baseset_ptr_id" = 176644 LIMIT 21
10 similar queries.
0.35

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/sets.py in get_moc(870)
  elif hasattr(self, 'moc'):

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 195774
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 195774 LIMIT 21
18 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/mocs.py in get_absolute_url(840)
  url = "/mocs/{0}/{1}/{2}/".format(self.set_num, parse.quote(self.designer.username, safe=''), slug)

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."primary_moc_image_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 176644
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 176644 LIMIT 21
10 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 176644
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 176644 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 144178
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 144178 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent"
  FROM
"accounts_userplan"
 WHERE
"accounts_userplan"."user_id" = 195774
 LIMIT
21
SELECT ••• FROM "accounts_userplan" WHERE "accounts_userplan"."user_id" = 195774 LIMIT 21
10 similar queries.
0.19

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly"
  FROM
"plans_plan"
 WHERE
"plans_plan"."id" = 1
 LIMIT
21
SELECT ••• FROM "plans_plan" WHERE "plans_plan"."id" = 1 LIMIT 21
10 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./accounts/models/users.py in is_free(512)
  return self.plan.is_free()

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."default_inventory_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 236775
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 236775 LIMIT 21
10 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 236775
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 236775 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 240746
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 240746 LIMIT 21
13 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 236775
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 236775 LIMIT 21
11 similar queries.
0.10

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

27 data-variant="{{ set.variant }}"
28 data-added="{{ set.added_dt|date_to_epoch }}"
29 {% if set.is_moc %}
30 data-likes="{{ set.stats.likes }}"
31 {% endif %}
32 {% if set.custom_sort %}
33 data-custom_sort="{{ set.custom_sort }}"
34 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_moc"."baseset_ptr_id" = 236775
 LIMIT
21
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_moc"."baseset_ptr_id" = 236775 LIMIT 21
10 similar queries.
0.15

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/sets.py in get_moc(870)
  elif hasattr(self, 'moc'):

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 149621
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 149621 LIMIT 21
18 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/mocs.py in get_absolute_url(840)
  url = "/mocs/{0}/{1}/{2}/".format(self.set_num, parse.quote(self.designer.username, safe=''), slug)

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."primary_moc_image_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 236775
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 236775 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 236775
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 236775 LIMIT 21
20 similar queries. Duplicated 2 times.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 440969
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 440969 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent"
  FROM
"accounts_userplan"
 WHERE
"accounts_userplan"."user_id" = 149621
 LIMIT
21
SELECT ••• FROM "accounts_userplan" WHERE "accounts_userplan"."user_id" = 149621 LIMIT 21
10 similar queries.
0.10

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly"
  FROM
"plans_plan"
 WHERE
"plans_plan"."id" = 4
 LIMIT
21
SELECT ••• FROM "plans_plan" WHERE "plans_plan"."id" = 4 LIMIT 21
10 similar queries. Duplicated 4 times.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./accounts/models/users.py in is_free(512)
  return self.plan.is_free()

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 236775)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 236775) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

176 <span class="rb-chip rb-chip--danger rb-chip--sm">{{ discount_pct }}</span>
177 </span>
178 {% elif moc.is_for_sale %}
179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 196045
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 196045 LIMIT 21
12 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}
187 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."default_inventory_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 201036
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 201036 LIMIT 21
10 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 201036
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 201036 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 204782
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 204782 LIMIT 21
13 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 201036
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 201036 LIMIT 21
11 similar queries.
0.10

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

27 data-variant="{{ set.variant }}"
28 data-added="{{ set.added_dt|date_to_epoch }}"
29 {% if set.is_moc %}
30 data-likes="{{ set.stats.likes }}"
31 {% endif %}
32 {% if set.custom_sort %}
33 data-custom_sort="{{ set.custom_sort }}"
34 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_moc"."baseset_ptr_id" = 201036
 LIMIT
21
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_moc"."baseset_ptr_id" = 201036 LIMIT 21
10 similar queries.
0.18

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/sets.py in get_moc(870)
  elif hasattr(self, 'moc'):

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 340533
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 340533 LIMIT 21
18 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/mocs.py in get_absolute_url(840)
  url = "/mocs/{0}/{1}/{2}/".format(self.set_num, parse.quote(self.designer.username, safe=''), slug)

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."primary_moc_image_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 201036
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 201036 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 201036
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 201036 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 13442
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 13442 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent"
  FROM
"accounts_userplan"
 WHERE
"accounts_userplan"."user_id" = 340533
 LIMIT
21
SELECT ••• FROM "accounts_userplan" WHERE "accounts_userplan"."user_id" = 340533 LIMIT 21
10 similar queries.
0.11

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly"
  FROM
"plans_plan"
 WHERE
"plans_plan"."id" = 5
 LIMIT
21
SELECT ••• FROM "plans_plan" WHERE "plans_plan"."id" = 5 LIMIT 21
10 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./accounts/models/users.py in is_free(512)
  return self.plan.is_free()

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."default_inventory_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 20789
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 20789 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 20789
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 20789 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 20536
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 20536 LIMIT 21
13 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 20789
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 20789 LIMIT 21
11 similar queries.
0.08

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

27 data-variant="{{ set.variant }}"
28 data-added="{{ set.added_dt|date_to_epoch }}"
29 {% if set.is_moc %}
30 data-likes="{{ set.stats.likes }}"
31 {% endif %}
32 {% if set.custom_sort %}
33 data-custom_sort="{{ set.custom_sort }}"
34 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_moc"."baseset_ptr_id" = 20789
 LIMIT
21
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_moc"."baseset_ptr_id" = 20789 LIMIT 21
10 similar queries.
0.19

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/sets.py in get_moc(870)
  elif hasattr(self, 'moc'):

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 99165
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 99165 LIMIT 21
18 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/mocs.py in get_absolute_url(840)
  url = "/mocs/{0}/{1}/{2}/".format(self.set_num, parse.quote(self.designer.username, safe=''), slug)

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."primary_moc_image_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 20789
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 20789 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 20789
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 20789 LIMIT 21
20 similar queries. Duplicated 2 times.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 374102
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 374102 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent"
  FROM
"accounts_userplan"
 WHERE
"accounts_userplan"."user_id" = 99165
 LIMIT
21
SELECT ••• FROM "accounts_userplan" WHERE "accounts_userplan"."user_id" = 99165 LIMIT 21
10 similar queries.
0.10

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly"
  FROM
"plans_plan"
 WHERE
"plans_plan"."id" = 2
 LIMIT
21
SELECT ••• FROM "plans_plan" WHERE "plans_plan"."id" = 2 LIMIT 21
10 similar queries. Duplicated 2 times.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./accounts/models/users.py in is_free(512)
  return self.plan.is_free()

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 20789)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 20789) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 398
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 398 LIMIT 21
12 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}
187 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."default_inventory_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 85466
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 85466 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 85466
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 85466 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 87259
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 87259 LIMIT 21
13 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 85466
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 85466 LIMIT 21
11 similar queries.
0.11

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

27 data-variant="{{ set.variant }}"
28 data-added="{{ set.added_dt|date_to_epoch }}"
29 {% if set.is_moc %}
30 data-likes="{{ set.stats.likes }}"
31 {% endif %}
32 {% if set.custom_sort %}
33 data-custom_sort="{{ set.custom_sort }}"
34 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_moc"."baseset_ptr_id" = 85466
 LIMIT
21
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_moc"."baseset_ptr_id" = 85466 LIMIT 21
10 similar queries.
0.20

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/sets.py in get_moc(870)
  elif hasattr(self, 'moc'):

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 506786
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 506786 LIMIT 21
18 similar queries.
0.11

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/mocs.py in get_absolute_url(840)
  url = "/mocs/{0}/{1}/{2}/".format(self.set_num, parse.quote(self.designer.username, safe=''), slug)

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."primary_moc_image_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 85466
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 85466 LIMIT 21
10 similar queries.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 85466
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 85466 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 46660
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 46660 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent"
  FROM
"accounts_userplan"
 WHERE
"accounts_userplan"."user_id" = 506786
 LIMIT
21
SELECT ••• FROM "accounts_userplan" WHERE "accounts_userplan"."user_id" = 506786 LIMIT 21
10 similar queries.
0.11

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly"
  FROM
"plans_plan"
 WHERE
"plans_plan"."id" = 5
 LIMIT
21
SELECT ••• FROM "plans_plan" WHERE "plans_plan"."id" = 5 LIMIT 21
10 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./accounts/models/users.py in is_free(512)
  return self.plan.is_free()

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 85466)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 85466) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 11409
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 11409 LIMIT 21
12 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}
187 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."default_inventory_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 307099
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 307099 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 307099
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 307099 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 311334
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 311334 LIMIT 21
13 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 307099
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 307099 LIMIT 21
11 similar queries.
0.11

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

27 data-variant="{{ set.variant }}"
28 data-added="{{ set.added_dt|date_to_epoch }}"
29 {% if set.is_moc %}
30 data-likes="{{ set.stats.likes }}"
31 {% endif %}
32 {% if set.custom_sort %}
33 data-custom_sort="{{ set.custom_sort }}"
34 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_moc"."baseset_ptr_id" = 307099
 LIMIT
21
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_moc"."baseset_ptr_id" = 307099 LIMIT 21
10 similar queries.
0.29

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/sets.py in get_moc(870)
  elif hasattr(self, 'moc'):

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 1177910
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 1177910 LIMIT 21
18 similar queries.
0.12

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/mocs.py in get_absolute_url(840)
  url = "/mocs/{0}/{1}/{2}/".format(self.set_num, parse.quote(self.designer.username, safe=''), slug)

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."primary_moc_image_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 307099
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 307099 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 307099
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 307099 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 784687
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 784687 LIMIT 21
334 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent"
  FROM
"accounts_userplan"
 WHERE
"accounts_userplan"."user_id" = 1177910
 LIMIT
21
SELECT ••• FROM "accounts_userplan" WHERE "accounts_userplan"."user_id" = 1177910 LIMIT 21
10 similar queries.
0.10

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly"
  FROM
"plans_plan"
 WHERE
"plans_plan"."id" = 7
 LIMIT
21
SELECT ••• FROM "plans_plan" WHERE "plans_plan"."id" = 7 LIMIT 21
10 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./accounts/models/users.py in is_free(512)
  return self.plan.is_free()

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 307099)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 307099) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

176 <span class="rb-chip rb-chip--danger rb-chip--sm">{{ discount_pct }}</span>
177 </span>
178 {% elif moc.is_for_sale %}
179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 98028
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 98028 LIMIT 21
12 similar queries.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}
187 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."default_inventory_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 14751
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 14751 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 14751
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 14751 LIMIT 21
20 similar queries. Duplicated 2 times.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_inventory"."id",
       "lego_inventory"."set_id",
       "lego_inventory"."version",
       "lego_inventory"."name",
       "lego_inventory"."is_active",
       "lego_inventory"."num_parts",
       "lego_inventory"."num_versions"
  FROM
"lego_inventory"
 WHERE
"lego_inventory"."id" = 7152
 LIMIT
21
SELECT ••• FROM "lego_inventory" WHERE "lego_inventory"."id" = 7152 LIMIT 21
13 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(24)
  inventory = set.get_default_inventory()

/home/nathan/rb/site/./lego/models/sets.py in get_default_inventory(1018)
  if self.default_inventory is not None:

18 <p>Other Sets/MOCs you might like</p>
19 <div class="pr-15">
20 {% for related_set in similar_sets %}
21 {% render_set related_set related=False %}
22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT "lego_setstatstotal"."set_id",
       "lego_setstatstotal"."hits",
       "lego_setstatstotal"."builds",
       "lego_setstatstotal"."likes",
       "lego_setstatstotal"."bi_downloads",
       "lego_setstatstotal"."featured_hits",
       "lego_setstatstotal"."user_hits"
  FROM
"lego_setstatstotal"
 WHERE
"lego_setstatstotal"."set_id" = 14751
 LIMIT
21
SELECT ••• FROM "lego_setstatstotal" WHERE "lego_setstatstotal"."set_id" = 14751 LIMIT 21
11 similar queries.
0.13

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

27 data-variant="{{ set.variant }}"
28 data-added="{{ set.added_dt|date_to_epoch }}"
29 {% if set.is_moc %}
30 data-likes="{{ set.stats.likes }}"
31 {% endif %}
32 {% if set.custom_sort %}
33 data-custom_sort="{{ set.custom_sort }}"
34 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector",
       "lego_moc"."baseset_ptr_id",
       "lego_moc"."designer_id",
       "lego_moc"."detail_url",
       "lego_moc"."gallery_url",
       "lego_moc"."bi_url",
       "lego_moc"."cad_url",
       "lego_moc"."video",
       "lego_moc"."bi_type",
       "lego_moc"."is_for_sale",
       "lego_moc"."is_hosted",
       "lego_moc"."cost",
       "lego_moc"."currency_id",
       "lego_moc"."parent_set_1_id",
       "lego_moc"."parent_set_2_id",
       "lego_moc"."parent_set_3_id",
       "lego_moc"."parent_set_4_id",
       "lego_moc"."parent_set_5_id",
       "lego_moc"."parent_inv_1_id",
       "lego_moc"."parent_inv_2_id",
       "lego_moc"."parent_inv_3_id",
       "lego_moc"."parent_inv_4_id",
       "lego_moc"."parent_inv_5_id",
       "lego_moc"."parent_type",
       "lego_moc"."is_allowed_premium",
       "lego_moc"."is_locked",
       "lego_moc"."last_social_post",
       "lego_moc"."is_review_requested"
  FROM
"lego_moc"
 INNER JOIN
"lego_baseset"
    ON
("lego_moc"."baseset_ptr_id" = "lego_baseset"."id")
 WHERE
"lego_moc"."baseset_ptr_id" = 14751
 LIMIT
21
SELECT ••• FROM "lego_moc" INNER JOIN "lego_baseset" ON ("lego_moc"."baseset_ptr_id" = "lego_baseset"."id") WHERE "lego_moc"."baseset_ptr_id" = 14751 LIMIT 21
10 similar queries.
0.26

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/sets.py in get_moc(870)
  elif hasattr(self, 'moc'):

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "auth_user"."id",
       "auth_user"."password",
       "auth_user"."last_login",
       "auth_user"."is_superuser",
       "auth_user"."username",
       "auth_user"."first_name",
       "auth_user"."last_name",
       "auth_user"."email",
       "auth_user"."is_staff",
       "auth_user"."is_active",
       "auth_user"."date_joined",
       "lego_designer"."user_ptr_id",
       "lego_designer"."auto_approve",
       "lego_designer"."num_auto_approved",
       "lego_designer"."last_checked_for_moc_errors"
  FROM
"lego_designer"
 INNER JOIN
"auth_user"
    ON
("lego_designer"."user_ptr_id" = "auth_user"."id")
 WHERE
"lego_designer"."user_ptr_id" = 26393
 LIMIT
21
SELECT ••• FROM "lego_designer" INNER JOIN "auth_user" ON ("lego_designer"."user_ptr_id" = "auth_user"."id") WHERE "lego_designer"."user_ptr_id" = 26393 LIMIT 21
18 similar queries. Duplicated 2 times.
0.10

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in get_absolute_url(628)
  return self.get_moc().get_absolute_url()

/home/nathan/rb/site/./lego/models/mocs.py in get_absolute_url(840)
  url = "/mocs/{0}/{1}/{2}/".format(self.set_num, parse.quote(self.designer.username, safe=''), slug)

41 {# cache 3600 'render_set_img_tn_2' set.id tn_options mtime set.get_absolute_url #} {# about 40ms for 50 images in debug, disabled as pending moc preview never works #}
42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."primary_moc_image_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 14751
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 14751 LIMIT 21
10 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."theme_id"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 14751
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 14751 LIMIT 21
20 similar queries. Duplicated 2 times.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

/home/nathan/rb/site/./lego/models/sets.py in __init__(563)
  self.__original_theme_id = self.theme_id  # Need actual value or changes can't be detected

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_mocimage"."id",
       "lego_mocimage"."moc_id",
       "lego_mocimage"."is_primary",
       "lego_mocimage"."file_extension"
  FROM
"lego_mocimage"
 WHERE
"lego_mocimage"."id" = 383725
 LIMIT
21
SELECT ••• FROM "lego_mocimage" WHERE "lego_mocimage"."id" = 383725 LIMIT 21
334 similar queries.
0.06

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/sets.py in img_dir(771)
  img = self.primary_moc_image

42 {# Image #}
43 <div class="rb-card__image {% if set.is_figure %} js-hover-card{% endif %}" {% if set.is_figure %}data-hover="{% url 'minfig_hover' set.set_num %}"{% endif %}>
44 <a href="{{ set.get_absolute_url }}{% if inventory and not set.is_moc %}?inventory={{ inventory.version }}{% endif %}">
45 {% if not set.img_dir and set.is_figure %}
46 {% include 'lego/includes/render_set_img.html' with img_file='nil_mf.jpg' tn_options=tn_options %}
47 {% else %}
48 {% include 'lego/includes/render_set_img.html' with img_file=set.img_dir tn_options=tn_options %}
49 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "accounts_userplan"."user_id",
       "accounts_userplan"."plan_id",
       "accounts_userplan"."expiry_date",
       "accounts_userplan"."last_paid_date",
       "accounts_userplan"."is_subscription_active",
       "accounts_userplan"."subscription_period",
       "accounts_userplan"."payment_source",
       "accounts_userplan"."stripe_customer_id",
       "accounts_userplan"."stripe_subscription_id",
       "accounts_userplan"."paypal_subscription_id",
       "accounts_userplan"."base_free_plan_id",
       "accounts_userplan"."is_reminder_sent"
  FROM
"accounts_userplan"
 WHERE
"accounts_userplan"."user_id" = 26393
 LIMIT
21
SELECT ••• FROM "accounts_userplan" WHERE "accounts_userplan"."user_id" = 26393 LIMIT 21
10 similar queries. Duplicated 2 times.
0.10

Connection: default

Transaction status: In transaction

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/usr/lib/python3.10/contextlib.py in inner(79)
  return func(*args, **kwds)

/home/nathan/venv_rb310/lib/python3.10/site-packages/annoying/fields.py in __get__(36)
  .__get__(instance, instance_type)

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "plans_plan"."id",
       "plans_plan"."type",
       "plans_plan"."version",
       "plans_plan"."stripe_id",
       "plans_plan"."paypal_id",
       "plans_plan"."cost_single",
       "plans_plan"."cost_monthly",
       "plans_plan"."cost_yearly"
  FROM
"plans_plan"
 WHERE
"plans_plan"."id" = 4
 LIMIT
21
SELECT ••• FROM "plans_plan" WHERE "plans_plan"."id" = 4 LIMIT 21
10 similar queries. Duplicated 4 times.
0.08

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./accounts/models/users.py in is_free(512)
  return self.plan.is_free()

93 By <a href="{% url 'user_mocs' set.pendingmoc.designer.username %}" class="js-hover-card" data-hover="{% url 'user_card' set.pendingmoc.designer.username %}">{{ set.pendingmoc.designer.username }}</a>
94 {% elif set.moc and set.moc.designer.username %}
95 By <a href="{% url 'user_mocs' set.moc.designer.username %}">{{ set.moc.designer.username }}</a>
96 {% if not set.moc.designer.plan.is_free and set.designer.to_proxy.is_public_plan %}{{ set.moc.designer.to_proxy.get_plan_html }}{% endif %}
97 {% endif %}
98 </div>
99 {% endif %}
100

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT 1 AS "a"
  FROM
"lego_mocswitherrors"
 WHERE
("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 14751)
 LIMIT
1
SELECT ••• FROM "lego_mocswitherrors" WHERE ("lego_mocswitherrors"."error_type" = 'inventory' AND "lego_mocswitherrors"."moc_id" = 14751) LIMIT 1
327 similar queries.
0.07

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

/home/nathan/rb/site/./lego/models/mocs.py in is_alternate(206)
  if not self.is_pending and MocsWithErrors.objects.filter(moc=self, error_type='inventory').exists():

179 <span class="rb-chip rb-chip--premium rb-chip--sm" title="Premium MOC"><i class="fa fa-fw fa-diamond"></i><span class="rb-chip--label">{% if moc.is_alternate %}Prem{% else %}Premium{% endif %}</span></span>
180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT "lego_baseset"."id",
       "lego_baseset"."set_num",
       "lego_baseset"."name",
       "lego_baseset"."year",
       "lego_baseset"."theme_id",
       "lego_baseset"."set_type",
       "lego_baseset"."num_parts",
       "lego_baseset"."default_inventory_id",
       "lego_baseset"."is_active",
       "lego_baseset"."is_accessory",
       "lego_baseset"."added_dt",
       "lego_baseset"."added_by_id",
       "lego_baseset"."last_modified_dt",
       "lego_baseset"."last_modified_by_id",
       "lego_baseset"."active_change_dt",
       "lego_baseset"."active_change_by_id",
       "lego_baseset"."last_checked_for_bi",
       "lego_baseset"."descr",
       "lego_baseset"."primary_photo_id",
       "lego_baseset"."primary_moc_image_id",
       "lego_baseset"."is_gear",
       "lego_baseset"."is_book",
       "lego_baseset"."search_vector",
       "lego_baseset"."mfhash_vector"
  FROM
"lego_baseset"
 WHERE
"lego_baseset"."id" = 7723
 LIMIT
21
SELECT ••• FROM "lego_baseset" WHERE "lego_baseset"."id" = 7723 LIMIT 21
12 similar queries.
0.09

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./lego/templatetags/sets/drawing.py in render_set(32)
  return render_to_string('sets/render_set.html',

180 {% endif %}
181
182 {% if moc.is_alternate %}
183 <span class="rb-chip rb-chip--alt rb-chip--sm" title="Alternate Build MOC{% if moc.parent_set_2_id %}{% else %} - only uses parts from {{ moc.parent_set_1 }}{% endif %}"><i class="fa fa-fw fa-retweet text-white"></i><span class="rb-chip--label">Alt</span></span>
184 {% endif %}
185 </div>
186 {% endwith %}
187 {% endif %}

/home/nathan/rb/site/lego/templates/sets/render_set.html

SELECT (width*height) AS "area",
       "ads_banner"."id",
       "ads_banner"."width",
       "ads_banner"."height",
       "ads_banner"."start_date",
       "ads_banner"."end_date",
       "ads_banner"."country_code",
       "ads_banner"."html"
  FROM
"ads_banner"
 WHERE
("ads_banner"."start_date" < '2026-11-16T00:44:25.075207+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:25.075271+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:25.075193+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:25.075388+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US')
SELECT ••• FROM "ads_banner" WHERE ("ads_banner"."start_date" < '2026-11-16T00:44:25.075207+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:25.075271+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:25.075193+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:25.075388+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US')
3 similar queries.
1.96

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./ads/templatetags/ads/drawing.py in render_banner(291)
  if not banners:

22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}
26 <a href="{% url 'browse_mocs' %}"><button class="btn btn-default btn-block mt-10">Discover more MOCs!</button></a>
27 </section>
28

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

SELECT (width*height) AS "area",
       "ads_banner"."id",
       "ads_banner"."width",
       "ads_banner"."height",
       "ads_banner"."start_date",
       "ads_banner"."end_date",
       "ads_banner"."country_code",
       "ads_banner"."html"
  FROM
"ads_banner"
 WHERE
("ads_banner"."start_date" < '2026-11-16T00:44:25.075207+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:25.075271+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:25.075193+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:25.075388+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US')
 ORDER BY
1 DESC, RANDOM() ASC
 LIMIT
1
SELECT ••• FROM "ads_banner" WHERE ("ads_banner"."start_date" < '2026-11-16T00:44:25.075207+00:00'::timestamptz AND ("ads_banner"."end_date" > '2026-11-16T00:44:25.075271+00:00'::timestamptz OR "ads_banner"."end_date" IS NULL) AND "ads_banner"."height" <= 350 AND "ads_banner"."start_date" < '2026-11-16T00:44:25.075193+00:00'::timestamptz AND "ads_banner"."width" <= 262 AND ("ads_banner"."end_date" IS NULL OR "ads_banner"."end_date" > '2026-11-16T00:44:25.075388+00:00'::timestamptz) AND "ads_banner"."country_code" = 'US') ORDER BY 1 DESC, RANDOM() ASC LIMIT 1
3 similar queries.
1.34

Connection: default

Transaction status: Idle

/home/nathan/rb/site/./lego/views/sets.py in find_sets(116)
  return set_details(request, slug1)

/home/nathan/venv_rb310/lib/python3.10/site-packages/ratelimit/decorators.py in _wrapped(30)
  return fn(*args, **kw)

/home/nathan/rb/site/./lego/views/sets.py in set_details(451)
  return render(request, 'sets/set_details.html', context)

/home/nathan/rb/site/./ads/templatetags/ads/drawing.py in render_banner(298)
  banner = banners.order_by('-area', '?')[0]

22 {% endfor %}
23 </div>
24 {% render_ad 'med_rect_btf' %}
25 {% render_banner 262 350 %}
26 <a href="{% url 'browse_mocs' %}"><button class="btn btn-default btn-block mt-10">Discover more MOCs!</button></a>
27 </section>
28

/home/nathan/rb/site/lego/templates/sets/includes/render_set_sidebar_bottom.html

Log messages

No messages logged.