From 048c021d32b4e4a68cd32208ce8bb0d81b27bbd4 Mon Sep 17 00:00:00 2001 From: David Dougherty Date: Fri, 3 Jan 2025 11:34:58 -0800 Subject: [PATCH] DEV: fix code example (#1016) --- .../stack-with-enterprise/gears-v1/python/quickstart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/quickstart.md b/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/quickstart.md index 94dac18f8..f65b395ad 100644 --- a/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/quickstart.md +++ b/content/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/quickstart.md @@ -108,7 +108,7 @@ def compare_and_swap(x): gb = GearsBuilder() gb.map(age) # Extract the 'age' field from each hash gb.foreach(compare_and_swap) # Compare the max age to the value stored at age:maximum -gb.register('person:*') # Only process keys matching the pattern 'person:*' +gb.register(prefix='person:*') # Only process keys matching the pattern 'person:*' ``` You can see here that we define two methods: `age()` and `compare_and_swap()`. Even if you're not familiar with Python, you should be able to see what the methods do.