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

🌍 Add google-earth filetype kml and update contributing #11

Merged
merged 8 commits into from
Oct 30, 2021

Conversation

rootkit7628
Copy link
Member

@gaetan1903 @rivo2302 please review my PR and add hacktoberfest-accepted tags 🚀

rootkit7628 and others added 2 commits October 29, 2021 23:04
- Add kml filetype on websearch
- Add test for kml filetype
- Add link for contributing
Copy link
Member

@gaetan1903 gaetan1903 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the docs?

There is no README to show your PR ?

rootkit7628 and others added 5 commits October 30, 2021 07:11
- Create a method for finding all filetype
- Add test for custom
- Add KML and CUSTOM to readme
fix default parameter
Copy link
Member

@gaetan1903 gaetan1903 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepted,

Thanks !

self.__data['kml'] = (self.query, result)
return result

def custom_search(self, extension='pdf', mimetype='pdf'):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you change ext to mimetype, so you have to write 'application/pdf' not pdf only

@gaetan1903
Copy link
Member

J'ai mis le label hacktoberfest-accepted donc, cela sera compté dans ton hacktoberfest challenge,

Je mergerai quand j'aurais trouvé le soucis du test, cela n'est pas lié à ton code apparement,

This was linked to issues Oct 30, 2021
tests/test.py Outdated
self.assertTrue(len(documents))
#verification lien
for doc in documents:
self.assertTrue(map.startswith('http'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you use map ? you mean doc, that's why test fail for custom_search

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for the error

@gaetan1903 gaetan1903 merged commit 6216183 into iTeam-S:main Oct 30, 2021
@gaetan1903 gaetan1903 mentioned this pull request Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mettre un recherche custom Next Release
2 participants