summaryrefslogtreecommitdiff
path: root/topics
diff options
context:
space:
mode:
Diffstat (limited to 'topics')
-rw-r--r--topics/maybe-monad.gmi8
-rw-r--r--topics/queries-and-prepared-statements-in-python.gmi2
2 files changed, 9 insertions, 1 deletions
diff --git a/topics/maybe-monad.gmi b/topics/maybe-monad.gmi
index 5ec582c..7f2afa9 100644
--- a/topics/maybe-monad.gmi
+++ b/topics/maybe-monad.gmi
@@ -50,3 +50,11 @@ with conn.cursor(utility.monads.MonadicDictCursor) as cursor:
for row in cursor.fetchall():
row["foo"].bind(print)
```
+
+## Useful Resources
+
+=> https://www.miguelfarrajota.com/2021/06/monads-in-python-with-pymonad/
+
+=> https://jasondelaat.github.io/pymonad_docs/explanations/whats-a-monad.html
+
+=> https://simon.tournier.info/posts/2021-02-03-monad.html
diff --git a/topics/queries-and-prepared-statements-in-python.gmi b/topics/queries-and-prepared-statements-in-python.gmi
index 642ed96..969c27f 100644
--- a/topics/queries-and-prepared-statements-in-python.gmi
+++ b/topics/queries-and-prepared-statements-in-python.gmi
@@ -29,7 +29,7 @@ curr.execute(
WHERE Strain.Name IN ({})
and Strain.SpeciesId=Species.Id
and Species.name = %s
- """.format(", ".join(sample_data_keys)),
+ """.format(", ".join(["%s"] * len(sample_data_keys))),
(sample_data_keys + (dataset.group.species,)))
```