Skip to content

Commit

Permalink
fix adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Plone su Server Crul committed Nov 11, 2024
1 parent 99c767f commit e3caa05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/collective/formsupport/counter/adapters/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
@implementer(IDataAdapter)
@adapter(Interface, ICollectiveFormsupportCounterLayer)
class DataAdapterWithCounter:
def __init__(self, context, request):
self.context = context
self.request = request

def get_block(self, block_id):
blocks = getattr(self.context, "blocks", {})
if not blocks:
Expand Down

0 comments on commit e3caa05

Please sign in to comment.