Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*- #
"""*********************************************************************************************"""
# FileName [ atari wrapper.py ]
# Synopsis [ environment wrapper for atari ]
# Author [ Ting-Wei Liu (Andi611) ]
# Copyright [ Copyleft(c), NTUEE, NTU, Taiwan ]
# Reference [ github.com/openai/baselines/blob/master/baselines/common/atari_wrappers.py ]
"""*********************************************************************************************"""
@riteshreddyr
riteshreddyr / flask-admin many-to-many search.md
Last active July 19, 2021 07:21
Flask-admin Many-to-Many Search and Filtering

#Flask-admin Many-to-Many Search

Many-to-Many searches are not easily supported by Flask-admin. Read Here for more info

##Solution

  • Add the association tables to the list of join tables so that the join between the two tables can be made through the association table.
  • Reverse the tables to ensure that the association tables are processed before the other join table.

Tested on Flask-Admin 1.1.0