Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get "Feature Type" to work #41

Closed
Hellhound1 opened this issue Jul 2, 2023 · 2 comments
Closed

Can't get "Feature Type" to work #41

Hellhound1 opened this issue Jul 2, 2023 · 2 comments

Comments

@Hellhound1
Copy link

Trying to use the following code to get a post to be featured to local community:

lemmy.post.feature(post_id, True, feature_type=FeatureType.Local)

However this throws the error
NameError: name 'FeatureType' is not defined

I can't seem to find a way to get this to work - am I missing something or is this a bug?

@Hellhound1 Hellhound1 changed the title Can't get "Feature Type to work" - Can't get "Feature Type" to work Jul 2, 2023
@db0
Copy link
Owner

db0 commented Jul 3, 2023

Did you import FeatureType?

@Hellhound1
Copy link
Author

I am an idiot. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants